Dynamically Converting text within an element to xml
Hi, Given input such as the following within the "text" element in a larger xml document currently being processed by an XSL file: <text> [ZZ] [XX] [YY] X [/YY] [YY] Y [/YY] [/XX] [/ZZ] </text> Is it possible to dynamically replace the [ ] with < > to output the text as xml nodes in the output document? <text> <ZZ><XX><YY>X</YY><YY>Y</YY></XX></ZZ> </text> 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. Regards -- Alex https://sites.google.com/a/utg.edu.gm/alex
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format