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

Applying Templates to a Substring

Subject: Applying Templates to a Substring
From: "Joe Heidenreich" <HeidenreichJ@xxxxxxxx>
Date: Thu, 21 Oct 2004 14:20:31 -0400
applying substring template
If I have a <li> node like this:

<ol>
     <li>1) This is the <b>first</b> item.</li>
     <li>2) This is the 2<sup>nd</sup> item.</li>
</ol>

and I want the output to be:

<ol>
     <li>This is the <b>first</b> item.</li>
     <li>This is the 2<sup>nd</sup> item.</li>
</ol>

However I'm not aware of how you can apply-templates to a substring. The only
way I can get the proper substring I need that I know of is:

<xsl:value-of select="substring-after(.,')')"/>

but that yields

<li>This is the first item.</li>
<li>This is the 2nd item.</li>

without the inner tags.


Thanks

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.