[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:49 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Context in nested loop > <xsl:for-each select="/root/nodeA/nodeB"> > <xsl:for-each select="@*"> > <xsl:if test="name()!='name'"> > <xsl:message> > <xsl:value-of > select="$document/root/nodeA/nodeB[@name=current()/../@name]/@*[l > ocal-name()=local-name(current())]" > /> > </xsl:message> > </xsl:if> > </xsl:for-each> > </xsl:for-each> > > if I am not mistaken. Brilliant, after a quick read of the docs on current(), that cleared up a lot for me. Thanks a lot Martin, 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
|