|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Parsing copy-of result tree fragment
How does someone take a tree fragment from a copy-of and then turn
around and use the results and parse out/replace certain characters. If
I try to assign the results of the copy-of to a variable to work on, all
I'm left with is the text values. I need to have the entire tree
fragment but with a backslash inserted in front of any single-quote
characters.
I've tried using the search-replace methods that I've seen, but I don't
know how to feed the results of the copy-of to it. Maybe it would be
better to do the search/replace on the entire xml first and then do the
copy-of on those results, but I don't know how to reference the parsed
xml file and pass those results to the copy-of operation either.
If the original xml were
<object>
<data1>
<sub-data>
joe's data
</sub-data>
</data1>
</object>
and the resulting fragment from the copy-of was
<sub-data>
joe's data
</sub-data>
I'd want the final output to be
<sub-data>
joe\'s data
</sub-data>
Any ideas?
Mike
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








