XML/XSL Portal

Multiple Stylesheet Aware
HideXML TutorialHide


While waiting for this to be submitted to exslt.org I thought I would put it up here as it is rather usefull.

It implements the xslt 2.0 extenalFile as a JavaScript function. To use it you include it in your stylesheet and then

<xsl:value-of select="document:externalFile('file:///c:\temp\test.xml')" />


<xsl:value-of disable-output-escaping="yes" select="document:externalFile('file:///c:\temp\test.xml')" />

The external file can be of any type xml, html, text, code.

The JavaScript stylesheet is here download and there are 2 example files that demonstrate how it is used testcase.xml and testcase.xsl. You will need to edit the testcase.xml file to change the path.



View XML
View XSL