Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: missing something in for-each select missing something in for-each selectTo: NULL Date: 9/11/2009 3:07:00 AM Hi,
I'm trying to get a for-each clause to work for laying out result sets and
I'm not really sure I understand why I can't get this to parse.
The xml is basically
<result status="ok">
<product>
<nodes...>
</product>
<product>
<nodes...>
</product>
<...>
</result>
I'm trying to lay out the product data in a 3x3 grid format with...
<xsl:template match="result[@status='ok']">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="product">
<xsl:for-each select=".[position() mod 3 =1]">
<...other stuff...>
</xsl:for-each>
</xsl:template>
I can get this working other ways, but I'd like to know if someone can tell
me why the for-each statement is incorret?
Thanks =)
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
