Hi,
i have XML included in CDATA and have to transform that xml like.
I have to transform this XML:
<record>
<core>
<![CDATA[
<Polygon>
<coordinates>4408580,5547914 4408570,5547514 4408580,5747085
4716183,5747085 4716193,5547514 4716183,5547914
4408580,5547914</coordinates>
</Polygon>
]]>
<core>
</record>
into this XML:
<record>
<box>
<x1>4408580</x1>
<y1>5547914</y1>
<x2>4716183</x2>
<y2>5747085</y2>
</box>
<record>
I can transform the whole CDATA into XML with:
<xsl:template match="record">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>
But I can not access the nodes with xsl. For example:
<xsl:value-of select="./Polygon/coordinates"/>
Has someone an idea how i can parse the XML from CDATA.
(I saw that SAXON is able to do that but I'm not able to change the
Parser or the Sourcecode of the program.)
Hope someone can help me.
greetings
Florian
------------------------------------------------------------------------
grit - graphische Informationstechnik
Florian Rengers Beratungsgesellschaft mbH
[EMAIL PROTECTED] http://www.grit.de
Tel.: +49-2389-9827-13 Fax: +49-2389-9827-27
------------------------------------------------------------------------