OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   problem with enumerated lists

[ Lists Home | Date Index | Thread Index ]
  • From: "Raheja, Dhruv (TRANS)" <Dhruv.Raheja@Trans.ge.com>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 02 Aug 2000 17:13:05 -0400

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:

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

In the stylesheet i have the following code:

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

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 Raheja
Summer Intern (Documentation Center)
GE Transportation Systems
2901 East Lake Road
Erie, PA 16531
Ph : (814) 875 - 2529 (O)
       (814) 824 - 2888 (R)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS