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

Re: List item display

Subject: Re: List item display
From: JBryant@xxxxxxxxx
Date: Mon, 19 Sep 2005 16:45:38 -0500
list item display
<xsl:number count="orderedlist/listitem"
level="any" from="manual"/>

is your problem (as I bet you know).

Try this instead:

<xsl:number count="listitem" from="orderedlist"/>

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




siarom egrub <egrubs@xxxxxxxxx> 
09/19/2005 04:05 PM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc

Subject
 List item display






Hi All!

I am trying to have the <listitem>s in an
<orderedlist> to display numerical values. The XSLFO
template below that I've developed is displaying zeros
"0" for all the list items. Could someone please
inform me what I am doing incorrectly here, or the
correct way to accomplish this task?

Thanks in advance for your help!

~S.E.


=======XSLFO TEMPLATE========

<xsl:template match="orderedlist/listitem/para">
   <fo:list-block provisional-label-separation="4em"
provisional-distance-between-starts="4em">
     <fo:list-item>
       <fo:list-item-label start-indent="2mm"
end-indent="label-end()">
                  <fo:block>
                      <xsl:number count="orderedlist/listitem"
level="any" from="manual"/>
                  </fo:block>
       </fo:list-item-label>
       <fo:list-item-body>
                   <fo:block
start-indent="6mm"><xsl:apply-templates/></fo:block>
       </fo:list-item-body>
     </fo:list-item>
   </fo:list-block>
</xsl:template>
 


=======XML Snippet======== 
 
<orderedlist>
    <listitem>
      <para>First list item.</para>
    </listitem>
    <listitem>
      <para>Second list item.</para>
    </listitem>
    <listitem>
      <para>Third list item.</para>
    </listitem>
</orderedlist>


The current output (display) is like this:

0 First list item.
0 Second list item.
0 Third list item.

This is the output (display) that I want:

1. First list item.
2. Second list item.
3. Third list item.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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.