xsl-list
[Top] [All Lists]

[xsl] Split element with mixed content

2007-08-02 08:39:06
Hello

What is the best method for splitting an element that has mixed content?

INPUT
-----
<root>
    <p>The quick <b>brown</b> fox jumped over the lazy dog.</p>
</root>

In the above example I want to split on the word 'over'.

OUTPUT
-----
<root>
    <p>The quick <b>brown</b> fox jumped </p>
    <p>over the lazy dog.</p>
</root>

Using analyze-string and tokenize only gives me the string value of the
<b> element. Am I missing something very obvious?

Thanks.

--
Kevin


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