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

Without parentnode, how to matchng first and last pos

Subject: Without parentnode, how to matchng first and last position of the list-item
From: "V.Ramkumar" <v.ramkumar@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Nov 2008 17:00:17 +0530
 Without parentnode
Hi List,

Input,

<p class="FeatureListNumbered">1.Stand in a line in front.</p>
<p class="FeatureListNumbered">2.Which month has the most birthdays?</p>
<p class="FeatureH1">Problem Guide:</p>
<p class="FeatureListNumbered">1.Stand in a line in front.</p>
<p class="FeatureListNumbered">2.Which month has the most birthdays?</p>

Output,
<list1 type="1">
<item1><p>Stand in a line in front.</p></item1>
<item1><p>Which month has the most birthdays?</p></item1>
</list1>
<sect1><title>Problem Guide:</title>
<list1 type="1">
<item1><p>Stand in a line in front.</p></item1>
<item1><p>Which month has the most birthdays?</p></item1>
</list1>

XSL,
<xsl:template match="p[starts-with(@class, 'FeatureListNumbered')]">
<item1><p><xsl:apply-templates/></p></item1>
</xsl:template>

Please suggest how to handle this issue.

Note: In the above input no parent tag for the list.

Regards,
Ramkumar.

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.