[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: TOC indents in XHTML?
> It works, but it's not smart and far from beautiful. There is > a better way > to do it, isn't it? :-) <xsl:template name="toc-indent"> <xsl:call-template name="indent"> <xsl:with-param name="level" select="count(ancestor::part)" /> </xsl:call-template> </xsl:template> <xsl:template name="indent"> <xsl:param name="level" /> <xsl:if test="$level"> <xsl:text>  </xsl:text> <xsl:call-template name="indent"> <xsl:with-param name="level" select="$level - 1" /> </xsl:call-template> </xsl:if> </xsl:template> Jarno XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|