[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: for-each tokenize() and context problem
Mario Madunic wrote:
I have the following variable,
<xsl:variable name="l_GetPartNumber"> <xsl:for-each select="tokenize(normalize-space($l_Components), ' ')"> <xsl:variable name="l_Num" select="." /> <xsl:for-each select="ancestor::*[self::page]/row[entry[1] = $l_Num]/entry[3]"> here use <xsl:for-each select="$t/ancestor::*[self::page]/row[entry[1] = $l_Num]/entry[3]"> That is necessary as with the for-each select="tokenize(...)" you no longer have the context node you have outside of the for-each. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
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
|