xsl-list
[Top] [All Lists]

Processing CDATA in input XML

2004-02-06 16:04:07
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



<Prev in Thread] Current Thread [Next in Thread>