[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Indented HTML Lists > Multiple Levels

Subject: Re: Indented HTML Lists > Multiple Levels
From: "Gogo Estragon" <g_estragon@xxxxxxxxxxx>
Date: Tue, 01 Nov 2005 19:18:37 +1000
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.