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

Re: extracting a substring between two tags

Subject: Re: extracting a substring between two tags
From: Andrew Franz <afranz0@xxxxxxxxxxxxxxxx>
Date: Fri, 24 Jun 2005 21:09:30 +1000
xsl function substring between
<xsl:value-of select="TR/TD[2]/B[1]" />

Rahil wrote:

Hi

I have a block of HTML such as

<TR>
<TD width="50%"><FONT SIZE="3" COLOR="blue">Checking for existence of Burning value of Wood...</FONT></TD>
<TD width="50%"><FONT SIZE="3" COLOR="#6666FF">Exists as a Restriction Class: <B>hasAbsoluteState&nbsp;burningCharacter
[10244]</B></FONT></TD>
</TR>


I want to extract the substring 'hasAbsoluteState&nbsp;burningCharacter' from the result of TR/TD[2]. I did something similar earlier using the long method of substring-after() and substring-before() but I wanted to know if theres a better way of applying the substring() function between say the two tags <B></B> or something similar ?

Thanks

Rahil

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.