xmlns attr for element nodes creating problem with xslt

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>

[1356 byte] By [dhanu4ua] at [2007-11-27 1:42:44]
# 1
Got the solution ..use these code:<xsl:template match="INDEX|INDEX[namespace-uri(.)=' http://xmlns.oracle.com/ku']"><xsl:copy-of select="."/></xsl:template>Cheers,Dhanu
dhanu4ua at 2007-7-12 0:59:45 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...