|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Indented HTML Lists > Multiple Levels
Thank you Robert, Ragulf and Manfred for responding so quickly...
With your help, I have managed to produce valid HTML with the following XSL: xxxxxxxxxxxxx <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="ISO-8859-1" indent="yes"/> <xsl:template match="site"> <ul> <xsl:apply-templates select="page"/> </ul> </xsl:template> <xsl:template match="map"> <li> <xsl:value-of select="@name"/> <!-- check for page children --> <xsl:if test="page"> <ul> <xsl:apply-templates select="page"/> </ul> </xsl:if> </li> </xsl:template> </xsl:stylesheet> xxxxxxxxxxxxx Hell, I love XML & XSL... It's so wonderfully logical! Nothing compares to it. _________________________________________________________________ SEEK: Over 80,000 jobs across all industries at Australia's #1 job site. http://ninemsn.seek.com.au?hotmail
|
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
|

Cart








