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

RE: substring-before<tab/>... substring-after<tab/> ta

Subject: RE: substring-before<tab/>... substring-after<tab/> take 2
From: "bryan" <bry@xxxxxxxxxx>
Date: Mon, 24 Feb 2003 17:10:16 +0100
substring before substring after
In the example below the para tag has two text nodes, so for example
count(text()) would return the number 2.
This <xsl:for-each select="text()"><xsl:number/>.<xsl:value-of
select="."/></xsl:for-each>
Would return 1.Provider 2.The name of the provider 
to use for the connection.
And so forth, so you can do what you need to from there I suppose.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Deb Berkson
Sent: Monday, February 24, 2003 4:44 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  substring-before<tab/>... substring-after<tab/> take 2

Hi!

I am sorry to pester again, but nobody has had a response... Is this 
impossible to do in straight XSLT???


(From my Friday email)
I am trying to get the text before and after the <tab/> demarcation in 
order to insert the strings into separate fields in a table.

<!-- using xsl:copy-of -->        
                 <para style="T2">Provider<tab/>The name of the provider

to use for the connection.</para>

I can't think of a way to get the information separated... when I output

the <xsl:value-of> on  the same node I get:

<para>ProviderThe name of the provider to use for the connection.</para>

I looked on the FAQs and archives but I didn't quite know how to word 
this query.


Any suggestions would be greatly appreciated!

Thank you in advance and Happy Monday (if that isn't too much of an 
oxymoron)

Deb Berkson
          


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.