[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: for vs. for-each
In:
<xsl:sequence select="$values[.]"/> ... the context when opening the predicate is $values and not the current item from the for-each. In: <xsl:sequence select="$values[current()]"/> ... the context when opening the predicate begins at $values but current() jumps the context back to the beginning of the XPath expression, which is the current item from the for-each. So it is readily explained. And it isn't a difference between for and for-each, it is that your predicate value either uses the context of the XPath node test (the ".") or ignores the context of the node test (the $i and current()). I hope this helps. . . . . . Ken At 2021-03-14 18:05 +0000, Michael MC<ller-Hillebrand mmh@xxxxxxxxx wrote: Folks, -- Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/s/ | Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Streaming hands-on XSLT/XPath 2 training class @US$125 (5 hours free) | Essays (UBL, XML, etc.) http://www.linkedin.com/today/author/gkholman |
|
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
|