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

Processing CDATA in input XML

Subject: Processing CDATA in input XML
From: "Philip Puccio" <email@xxxxxxxx>
Date: Fri, 6 Feb 2004 17:04:07 -0600
cdata xml
Hi,

If my input XML has CDATA that contains a well-formed XML document:

   <plan-text-item-data>
      <source-string-xml type="embeddedXML">
         <![CDATA[
            <?XML version="1.0"?>
               <strategyobservation smartid="FSR0100">
                  <paragraph>Consider annually reviewing your net worth
statement.</paragraph>
            </strategyobservation>
         ]]>
      </source-string-xml>
   </plan-text-item-data>

Is there a way using XSLT that I can emit that document as an XML element:

   <plan-text-item-data>
      <source-string-xml type="embeddedXML">
         <what-i-found-in-cdata>
            <strategyobservation smartid="FSR0100">
                  <paragraph>Consider annually reviewing your net worth
statement.</paragraph>
            </strategyobservation>
         </what-i-found-in-cdata>
      </source-string-xml>
   </plan-text-item-data>

I can match on source-string-xml and get its contents, but of course it's
simply a string.  Any suggestions?

Thanks!

. . . Phil Puccio



 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.