xsl-list
[Top] [All Lists]

[xsl] Fwd: text nodes

2008-09-16 10:38:20
Hi List,

Can you help me with an expression?

i need to select following text until next element (on bold)

 <a>hello</a> some text 1<br/>
some text 2
some text 3
<a>hello 2</a>

I need to get that text serialized (or at least separated by "|")

i am using:

                   <xsl:for-each select="following::text()[not(name(.)='a')]">
                    <xsl:value-of select="."/>
                    </xsl:for-each>

but i need to stop on the first occurrence on the "[ ]"

Thanks in advance.

Regards,

--
Ing. Lucas Lain

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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