Subject: [xsl] list spacing between label and text in html From: "Norma Yeazell" <Nyeazell@xxxxxxxxx> Date: Thu, 8 Apr 2004 14:23:06 -0400 |
Is there a way to get more space between my seqlist numbers and the text? Currently there is no space between the number and the text. Like so in the html. 1Seqlist in a para. 1.1Do not smoke or use open flame near batteries. 1.2Batteries may explode from spark. Here is my xslt: <xsl:template match="seqlist"> <xsl:choose> <xsl:when test="parent::para"> <ol style="list-style: none;"> <xsl:apply-templates select="title" mode="list"/> <xsl:apply-templates select="item" mode="para"/> </ol> </xsl:when> <xsl:otherwise> <ol> <xsl:apply-templates/> </ol> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="item" mode="para"> <xsl:if test="parent::seqlist"> <li> <xsl:choose> <xsl:when test="count(../following-sibling::seqlist) mod 2 = 1"> <b><xsl:number count="item" format="1"/></b><!-- this numbers 123 --> </xsl:when> <xsl:when test="count(../preceding-sibling::seqlist) mod 2 = 1"> <xsl:for-each select="../preceding-sibling::seqlist"> <b><xsl:value-of select="count(item)"/>.<xsl:text/></b><!-- this numbers 1.1 --> </xsl:for-each> <xsl:number count="item"/> </xsl:when> <xsl:when test="not(preceding-sibling::seqlist or following-sibling::seqlist or parent::randlist)"> <b><xsl:number count="item" format="1"/></b> </xsl:when> </xsl:choose> <xsl:apply-templates/> </li> </xsl:if> <xsl:if test="parent::randlist"> <li> <xsl:choose> <xsl:when test="count(../preceding-sibling::randlist) mod 2 = 1"> <b><fo:character character="•"/></b> <!-- this is a bullet --> </xsl:when> <xsl:otherwise> <b><fo:character character="–"/></b> <!-- this is a endash --> </xsl:otherwise> </xsl:choose> <xsl:apply-templates/> </li> </xsl:if> </xsl:template> Confidentiality Notice The information contained in this e-mail is confidential and intended for use only by the person(s) or organization listed in the address. If you have received this communication in error, please contact the sender at O'Neil & Associates, Inc., immediately. Any copying, dissemination, or distribution of this communication, other than by the intended recipient, is strictly prohibited.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Sorting problem, Michael Kay | Thread | RE: [xsl] list spacing between labe, Passin, Tom |
RE: [xsl] How to put space between , Pieter Reint Siegers | Date | RE: [xsl] list spacing between labe, Passin, Tom |
Month |