J
Johnny Ooi
I have two XML documents I want to refer to in my XSL sheet, but I'm
having problems accessing them. I want to access them both using the
document() function (or something similar that allows me to read from
files), but I've done this:
<xsl:variable name="var" select="document('file1.xml')/>
This doesn't work. I've also tried this (with xslaram as well, BTW)
<xsl:variable name="var">
<xsl:copy-of select="document('file1.xml')"/>
</xsl:variable>
And this does give me the contents, but I can't do $var/* - I get some
error about fragments.
Is there a way I can do this? I need to be able to read in two XML
documents and manipulate them together, you see.
Regards
Johnny
having problems accessing them. I want to access them both using the
document() function (or something similar that allows me to read from
files), but I've done this:
<xsl:variable name="var" select="document('file1.xml')/>
This doesn't work. I've also tried this (with xslaram as well, BTW)
<xsl:variable name="var">
<xsl:copy-of select="document('file1.xml')"/>
</xsl:variable>
And this does give me the contents, but I can't do $var/* - I get some
error about fragments.
Is there a way I can do this? I need to be able to read in two XML
documents and manipulate them together, you see.
Regards
Johnny