Subject: Re: matching templates without attributes
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 08 Jul 2002 17:40:50 +0200
|
http://www.dpawson.co.uk/xsl/sect2/N5536.html#d163e1098
Regards,
Joerg
Venkateshwar Bommineni wrote:
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
--
System Development
VIRBUS AG
Fon +49(0)341-979-7419
Fax +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|