![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Anyone could help me with this category problem? [Thread Next] Re: Anyone could help me with this category problem?To: NULL Date: 3/2/2005 12:45:00 AM > Here's one sample:
>
> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output indent="yes" />
>
> <xsl:key name="discByCat" match="cdshelf/disc" use="@cg"/>
>
> <xsl:template match="category">
> <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="cd">
> <p>
> <h1><xsl:apply-templates/>:</h1>
> <ol>
> <xsl:apply-templates select="key('discByCat',@type)"/>
> </ol>
> </p>
> </xsl:template>
>
> <xsl:template match="cdshelf"/>
>
> <xsl:template match="disc">
> <li>
> <xsl:value-of select="@name"/>
> </li>
> </xsl:template>
>
> </xsl:stylesheet>
>
>
> regards,
> --
> Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
> Fiat W3C in tenebris
Thank you again for your help, that helped me a lot. All the problems are
history now.
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
