[Home] [By Thread] [By Date] [Recent Entries]
All,
Is there a way to identify a node as containing cdata? eg. <node> <dataNotNewXMLTag1, dataVala, dataValb, moreData, ...> <dataNotNewXMLTag2, dataVala, dataValb, moreData, ...> <dataNotNewXMLTag3, dataVala, dataValb, moreData, ...> <dataNotNewXMLTag4, dataVala, dataValb, moreData, ...> <dataNotNewXMLTag5, dataVala, dataValb, moreData, ...> </node> I want to write a simple xsl script that would translate the above into something more manageable for XSLT processing: eg. <node> <dataNotNewXMLTag1, dataVala, dataValb, moreData, ...> <dataNotNewXMLTag2, dataVala, dataValb, moreData, ...> <dataNotNewXMLTag3, dataVala, dataValb, moreData, ...> <dataNotNewXMLTag4, dataVala, dataValb, moreData, ...> <dataNotNewXMLTag5, dataVala, dataValb, moreData, ...> </node> I had tried something like this:
<x:template match="node">
<x:element name="node">
<x:variable
name="start"
select="translate(exslt:node-set(.),"<","<")">
<x:variable
name="end"
select="translate(exslt:node-set($start),"<","<")">
<x:copy-of select="exslt:node-set($end)"/>
</x:element>
</x:template>But that really didn't work well, producing an error. Any help would be appreciated! Thanks, bix _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



