[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:for-each and variables
[Mark D. Anderson] >i replaced this line: > <xsl:variable name="temp">data/row</xsl:variable> >with this: > <xsl:variable name="temp" select="data/row"/> > >the interesting distinction here is what this means: ><xsl:for-each select="$temp"> > >with my variable value, $temp is a result tree fragment (right, everyone?) >which is then converted to a node-set for the for-each. No. With his declaration, $temp is a result tree fragment containing a text node with the string "data/row". Your declaration sets $temp to a node set, the set of all nodes matching the pattern "data/row". -Chris, finally caught up with a week-plus's mail from XML'99/MT'99/XSL WG last week. -- Christopher R. Maden, Solutions Architect Exemplary Technologies One Embarcadero Center, Ste. 2405 San Francisco, CA 94111 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|