xsl-list
[Top] [All Lists]

RE: substring-before<tab/>... substring-after<tab/> take 2

2003-02-24 09:10:16
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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Deb Berkson
Sent: Monday, February 24, 2003 4:44 PM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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



<Prev in Thread] Current Thread [Next in Thread>