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

Parsing copy-of result tree fragment

Subject: Parsing copy-of result tree fragment
From: Mike Mahoney <mmahoney@xxxxxxxxxx>
Date: Thu, 30 Nov 2000 08:38:48 -0700
mahoney tree
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.