This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
matching templates without attributes
- From: "Venkateshwar Bommineni" <vbommineni at elogex dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 8 Jul 2002 11:28:48 -0400
- Subject: [xsl] matching templates without attributes
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
I am new to XSLT. I am trying to match an element through XSLT as
follow.
Input XML is like:
<shipment xmns="http://www.foo.com/namespaces/v">
....
....
</shipment>
in XSLT, i have:
<xsl:template match="/">
<xsl:apply-templates select="shipment"/>
</xsl:template>
<xsl:template match="shipment">
.. do some thing ....
</xsl:template>
In above case i dont get any transformed output. And if comment out xmns
from <shipment> element it results proper output. So How to specify in
XSLT to ignore xmns attribute for shipment template to get output?
thanks
VENKAT
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list