Hi all,
I m facing a small issue. I have a xml file for which i have written a
xsl file to transform to another xml(demo.xml).I am not able to select
the nodes which have xmlns attribute. Can u tell me what has to be
done.Snapshot of files:
xml file:
<ROWSET>
<ROW>
<INDEX version="1.0" >
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>
<INDEX version="1.0" xmlns:doc="http://xmlns.oracle.com/ku">
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>
</ROWSET>
</ROW>
xsl File
<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/ROWSET">
<xsl:apply-templates select="ROW/INDEX"/>
</xsl:template>
<xsl:template match="ROW/INDEX">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
O/P xml:
<?xml version="1.0" encoding="UTF-8"?>
<INDEX version="1.0" >
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>
--~------------------------------------------------------------------
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>
--~--