xsl-list
[Top] [All Lists]

[xsl] transforming xml data in cdata

2009-11-08 21:59:21
Hi, I have the following xml data:
<Sale><Site>101</Site>
<Details><![CDATA[ <?xml 
version="1.0"?><items><item>desk</item><cost>10</cost></items> ]]>
</Details>
</Sale>
 
 I have an xslt "my.xslt" that tranforms the elements above except cdata part 
to result.xml. e.g <SalesItem><Location>101</Location></SalesItem>
 However, I also have "another.xslt" that can transform the xml part within the 
cdata section.
 I would like to import "another.xslt" into my.xslt and be able to transform 
the xml document within cdata as well.
 With the result looking similar to the following:
 <SalesItem><Location>101</Location><SkuDetails>
 <![CDATA<?xml version="1.0"?><skus><sku>desk</sku><amount>10</amount></skus>]]>
</SkuDetails></SalesItem>

Any ideas would be appreciated if this can be accomplished.
Thanks



      

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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