xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Split element with mixed content


Subject: [xsl] Split element with mixed content
From: "Kevin Bird" <kevin.bird@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Aug 2007 16:38:09 +0100

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


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor