Subject: [xsl] for-each loop in node set variable gives error From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx> Date: Thu, 2 Sep 2004 06:35:17 -0700 (PDT) |
Hello List, My stylesheet contains following declarations declaration 1: <xsl:variable name="employeeList"> <xsl:for-each select="//employee/*[name()!='max']"> <xsl:if test="count(key('employee', @id))=0"> <xsl:copy> <xsl:copy-of select="property[@name='cast']/@val"/> <xsl:copy-of select="@name"/> <xsl:copy-of select="property[@name='language']"/> </xsl:copy> </xsl:if> </xsl:for-each> </xsl:variable> declaration 2: <xsl:variable name="generatedEmployees"> <xsl:for-each select="$employeeList/*"> <xsl:sort select="@val"/> <xsl:copy-of select="."/> </xsl:for-each> </xsl:variable> for-each loop for $employeeList/* in declaration 2 gives error. I don't understand why it gives error. Any clue? regards, Ranjan _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] sorting titles w stopword, cking | Thread | RE: [xsl] for-each loop in node set, Michael Kay |
Re: [xsl] sorting titles w stopword, cking | Date | [xsl] Encoding of strings in styles, Murthy, Ganesh |
Month |