xsl-list
[Top] [All Lists]

[xsl] Truncated text string, relative to child node

2008-07-01 11:44:06
I have an XML file like this:

<a> lorem ipsum text ... lorem ipsum <b> dolor </b> lorem ipsum ...
lorem ipsum </a>

I want to create a string of the five words from <a> right before the <b>
tag, and a string of the five words immediately after <b>.  All I can do
is create strings from the beginning or the end of the <a> tag, but
basically I want the text in the middle, relative to the child <b> node.

Thanks!

--~------------------------------------------------------------------
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>