[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Context in nested loop
-----Original Message----- From: Martin Honnen martin.honnen@xxxxxx [mailto:xsl-list- service@xxxxxxxxxxxxxxxxxxxxxx] Sent: Friday, July 28, 2017 8:19 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Context in nested loop > > <xsl:variable name="document" select="document('file.xml')" /> > > > I think you need to show that second document too, together with the > result you get and the one you want. Hi Martin, Its schema is exactly the same as the sample XML, itbs a similar document with different values. To be honest, I whipped this repro up in vim so in reality the xpath selection within the message should correspond to the same element path I am iterating over but in the alternate document. In that case it should be <xsl:value-of select="$document/root/nodeA/nodeB[@name=$name]/@*[local-name()=$attr]" /> Sorry about that, I should have paid more attention. Thanks, jlc
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|