[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Dynamically Converting text within an element to xml

Subject: Dynamically Converting text within an element to xml nodes within the output document
From: Alex Muir <alex.g.muir@xxxxxxxxx>
Date: Mon, 28 Dec 2009 17:28:45 +0000
 Dynamically Converting text within an element to xml

Given input such as the following within the "text" element in a
larger xml document currently being processed by an XSL file:

[ZZ] [XX] [YY] X [/YY] [YY] Y [/YY] [/XX] [/ZZ]

Is it possible to dynamically replace the [ ]  with < > to output the
text as xml nodes in the output document?

What is making this difficult for me is that the text input could come
in different structures with other psuedo tags for example a  [[BB]]
or some other that may not be expected and so ideally it would be nice
to convert the [[ to < and the ]] to > with a find and replace however
getting the XSLT script to recognize this converted string as XML
nodes I can't seem to find a way to do.




Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.