[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Context in nested loop

Subject: Re: Context in nested loop
From: "Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jul 2017 14:30:02 -0000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.