[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] TOC despair
Subject: Re: [xsl] TOC despair From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 4 Dec 2003 00:23:56 GMT |
<xsl:template match="section" mode="toc"> ... <xsl:if test="count(following::section) = 0"> <xsl:attribute name="margin-bottom">1em</xsl:attribute> </xsl:if> ... </xsl:template> looks OK it could be simlified to <xsl:template match="section" mode="toc"> ... <xsl:if test="following::section"> <xsl:attribute name="margin-bottom">1em</xsl:attribute> </xsl:if> ... </xsl:template> but it depends a bit what your ... is, xsl:attribute can only be used immediately after an element is opened, you cannot add an attribute after adding any text or element children. David -- http://www.dcarlisle.demon.co.uk/matthew XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] TOC despair, W. Eliot Kimber | Thread | Re: [xsl] TOC despair, David Carlisle |
RE: [xsl] TOC despair, Christopher Hearns | Date | Re: [xsl] TOC despair, David Carlisle |
Month |