Home > PHP > Function > XSLT (PHP4) > xslt_set_base()

xslt_set_base()

xslt_set_base - Set the base URI for all
XSLTtransformations

Syntax

xslt_set_base (resource $xh, string $uri)

Arguments

  • xh - The XSLTprocessor link identifier, created with xslt_create().
  • uri - The base URI to be used.

Description

Sets the base URI for all XSLTtransformations, the base URI is used with Xpath instructions to resolve document() and other commands which access external resources. It is also used to resolve URIs for the <xsl:include>and <xsl:import>elements.

Version

PHP 4.0.5

Return value

No value is returned.