webmasterbeta
New Member
Hi,
I have an XML document which contains help topcs. I want the document to be used in multiple use cases, for importing into an AJAX app and for using XSL to produce a FAQ HTML page.
I know how to reference a style sheet in the XML document, but I was wondering if its possible to do it the other way round, and import the XML document into the style sheet.
I have been playing about with this and havent gotten anywhere, I have discovered the document funtion:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:copy-of select="document('help.xml')" />
</xsl:template>
</xsl:stylesheet>
But that doesnt get me anywhere, does anyone have any ideas?
Thanks!
I have an XML document which contains help topcs. I want the document to be used in multiple use cases, for importing into an AJAX app and for using XSL to produce a FAQ HTML page.
I know how to reference a style sheet in the XML document, but I was wondering if its possible to do it the other way round, and import the XML document into the style sheet.
I have been playing about with this and havent gotten anywhere, I have discovered the document funtion:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:copy-of select="document('help.xml')" />
</xsl:template>
</xsl:stylesheet>
But that doesnt get me anywhere, does anyone have any ideas?
Thanks!