Hi everyone,
Hope someone can help me out as im new to this language and am abit confused.
Basically im creating an online store with sections Music and subsections CD, Vinyl & MP3. I have the products displaying but they display on all three pages how do i sort them so they only appear on the correct page. so far the code I have used to sort them is:
<td>
<xsl:for-each select="document('products.xml')/SECTIONS/CATEGORY/SECTION/SUBSECTION[INFO='CD']">
<xsl:sort select="SUB"/>
<P>
<xsl:value-of select="INFO"/><br/>
<xsl:value-of select="SUB"/><br/>
<xsl:value-of select="SUB2"/><br/>
<xsl:value-of select="SUB3"/><br/>
</P>
</xsl:for-each>
</td>
Thank you
Hope someone can help me out as im new to this language and am abit confused.
Basically im creating an online store with sections Music and subsections CD, Vinyl & MP3. I have the products displaying but they display on all three pages how do i sort them so they only appear on the correct page. so far the code I have used to sort them is:
<td>
<xsl:for-each select="document('products.xml')/SECTIONS/CATEGORY/SECTION/SUBSECTION[INFO='CD']">
<xsl:sort select="SUB"/>
<P>
<xsl:value-of select="INFO"/><br/>
<xsl:value-of select="SUB"/><br/>
<xsl:value-of select="SUB2"/><br/>
<xsl:value-of select="SUB3"/><br/>
</P>
</xsl:for-each>
</td>
Thank you