Hi
i have written a xsl for converting xml to another xml but am getting the same xml in the output xsl is not getting applied .
can anybody look into this??
xml
---
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xml" href="LoiCheckXSL.xsl"?>
<XEC.root>
<XEC.child>
<XEC.imagelink>
<XEC.caption>caption</XEC.caption>
<XEC.pagenumber>18</XEC.pagenumber>
<XEC.imagetype>type</XEC.imagetype>
</XEC.imagelink>
</XEC.child>
</XEC.root>
xsl
---
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl
utput method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="XEC.child">
<xsl:for-each select="./*">
<font color="red"><xsl:value-of select="node()[1]" /></font><br/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>