[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] list spacing between label and text in html
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.
|
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
|