How to parse an XML DOM inside a CDATA element in XSLT?

FaPesAllery

New Member
say I have an XML file like:\[code\]<library> <books> <![CDATA[<genre><name>Sci-fi</name><count>2</count></genre>]]> <book> <name> Some Book </name> <author> Some author </author> <book> <book> <name> Another Book </name> <author> Another author </author> <book> <books></library>\[/code\]I want to read the CDATA element 'name' in an xslt transformer and place its value somewhere in the vaue of a tag. How do I do this? AFAIK, we cannot use xpath on the contents of CDATA. Is there some hack/workaround for this? I want to do this strictly in an XSLT.
 
Back
Top