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

list spacing between label and text in html

Subject: list spacing between label and text in html
From: "Norma Yeazell" <Nyeazell@xxxxxxxxx>
Date: Thu, 8 Apr 2004 14:23:06 -0400
html list spacing
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="&#8226;"/></b> <!-- this is
a bullet -->
            </xsl:when>
            <xsl:otherwise>
                <b><fo:character character="&#x2013;"/></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

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.