PHP: XSLTProcessor->importStylesheet() - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

XSLTProcessor->registerPHPFunctions() XSLTProcessor->hasExsltSupport()

Last updated: Fri, 26 Jan 2007

view this page in

# XSLTProcessor->importStylesheet()

(no version information, might be only in CVS)

XSLTProcessor->importStylesheet() -- Import stylesheet

## Описание

class XSLTProcessor {
void importStylesheet ( DOMDocument stylesheet )
}

This method import the stylesheet into the XSLTProcessor for transformations.

## Список параметров

`stylesheet`

  The imported style sheet as a DOMDocument object.

## Возвращаемые значения

Эта функция не возвращает значения после выполнения.

add a note User Contributed Notes
XSLTProcessor->importStylesheet()
bbrosseau at gmail
01-Mar-2005 08:46
`For those who wants to use external documents, it is important not to use the DomDocument::loadXML because the processor will not have the path to look for other files
So if you want to transform some xml with a pre-generated stylesheet $f:
$f = 'somestylesheet.xsl';
$xsl = DomDocument::loadXML(file_get_contents($f));
document('other.xml') will not work with relative path and
$xsl = DomDocument::load($f);
will!`
add a note
XSLTProcessor->registerPHPFunctions() XSLTProcessor->hasExsltSupport()

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST