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

problem with enumerated lists

  • From: "Raheja, Dhruv (TRANS)" <Dhruv.Raheja@T...>
  • To: xml-dev@l...
  • Date: Wed, 02 Aug 2000 17:13:05 -0400

enumerated sentence
hi everybody,
                    i am trying to display my XML information using an
enumerated list. i am generating that list in XSL using the
<ol><li>----</li></ol> . Each individual enumerated sentence is an element
called <num_list>. The structure is as follows:
<new_num_list>
	<num_list>
	---------------
	</num_list>
	<note>
            ------------
	</note>
	  <num_list>
             -------------
            <num_list>
<new_num_list>

The problem is that in the <new_num_list> element i also have other elements
(<note>, <warning>, <caution>) that may occur between the <num_list>
elements. What I want to do is insert <note> and/or <warning> and/or
<caution> without affecting the numbering of <num_list>.  what i mean is
that the first <num_list> in the above code should be numbered 1 and the
second <num_list> should be numbered 2 with the <note> inserted between
them.

In the stylesheet i have the following code:

<xsl:template match="new_num_list">
<ol>
<xsl:for-each select="num_list">
<li><xsl:value-of select="."/></li>
</xsl:for-each>
</ol>
</xsl:template>

Although this allows me to number the <num_list> elements, it doesnt allow
me to insert <note> in between. I tried to add <xsl:apply-templates
select="note"> after the </ol> tag but obviously what it does is that it
puts the <note> after numbering all the <num_list> elements.


Can someone please tell me what to do?


Thanks a lot,
Dhruv




Dhruv Raheja
Summer Intern (Documentation Center)
GE Transportation Systems
2901 East Lake Road
Erie, PA 16531
Ph : (814) 875 - 2529 (O)
       (814) 824 - 2888 (R)



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.