|
xslt_set_scheme_handlersSet the scheme handlers for the XSLT processor Description
void xslt_set_scheme_handlers
( resource
$xh
, array $handlers
)Registers the scheme handlers (XPath handlers) for the document. Parameters
Return ValuesNo value is returned. Examples
Example #1 xslt_set_scheme_handlers example For example, here is an implementation of the "file_exists()" PHP function.
<?php Then, inside the stylesheet, you can test whether a certain file exists with: <xsl:if test="document('file_exists:anotherXMLfile.xml')/root='true'"> <!-- The file exist --> </xsl:if> See Also
|