|
Subject: [xsl] Selecting text bisected by child nodes. From: Gan Uesli Starling <alias@xxxxxxxxxxx> Date: Tue, 22 Apr 2003 13:52:57 -0400 |
I have a node <foo> which has one or more child nodes. Those child nodes often bisect the text of <foo>, thus...
I need to do something with the ABC. So I select the 'ABC' like this...
<xsl:template match="foo">
<xsl:variable name="left">
<xsl:value-of select="node()"/>
</xsl:variable>Then I do something with that $left which holds 'ABC'. After that I do...
...which takes care of the child nodes just fine.
But I can't seem to get a hold of the 'DEF' from <foo>. I don't need to make it into a variable named $right, but I must at least display it.
My question is, how can I select just the 'DEF' from <foo>?
Or, baring that, how can I select 'ABCDEF' sans the child nodes. Always when I use 'select="node()" inside of <foo> the 'DEF' gets lost.
Gan --
<(+)__ Gan Uesli Starling
((__/)=- Kalamazoo, MI, USA
`||`
++ http://starling.us| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] concatenated key, Jeni Tennison | Thread | Re: [xsl] Selecting text bisected b, Jeff Kenton |
| RE: [xsl] Alternate page-sequences, G. Ken Holman | Date | RE: Re: [xsl] xslt query a data, cknell |
| Month |