Subject: Re: [xsl] xsl:for-each and document() From: Jim Hart <jhart@xxxxxxxxx> Date: Mon, 21 Jul 2003 10:43:53 -0400 |
Hello,< xsl:for-each select="document('external.xml')/element/*" xmlns:ext="http://some/arbitrary/url">
I'm trying to figure out how to access data in the source XML document while within a for-each loop of another XML document. Does anybody know how to accomplish this without doing another document() call to the source XML document?
source.xml ---------------------------------------------- <element> <child>source doc</child> </element>
external.xml ---------------------------------------------- <element> <child>external doc</child> <element>
stylesheet.xslt ---------------------------------------------- ... I can display <xsl:value-of select="/element/child"> here <xsl:for-each select="document('external.xml')/element/*">
I can display <xsl:value-of select="."/> here Problem: I can't display /element/child on my source.xml unless I do another document() call </xsl:for-each>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: xsl:for-each and document, Dimitre Novatchev | Thread | [xsl] i want no double xml records , Nico Noordhoek |
[xsl] Choosing the XSL Enginer with, Harihara Vinayakaram | Date | Re: [xsl] Choosing the XSL Enginer , joseph . a . gilvary |
Month |