XSLT document() Function
Complete XSLT Function Reference
Definition and Usage
The document() function is used to access nodes in an external XML
document. The external XML document must be valid and parsable.
One way to use this function is to look up data in an external document. For
example we want to find the Celsius value from a Fahrenheit value and we refer to a
document that contains some pre-computed results:
<xsl:value-of select="document('celsius.xml')/celsius/result[@value=$value]"/>
Syntax
|
node-set document(object,node-set?)
|
Parameters
| Parameter |
Description |
| object |
Required. Defines an URI to an external XML document |
| node-set |
Optional. Used to resolve relative URI |
Complete XSLT Function Reference
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|