[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: Xpath of an attribute
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Tue, 27 Apr 2004 12:30:00 +0300
Hi,

> <xsl:template 
> match="//body/namespace/form/snip/csf/div/center/p[position()=
> 1]/a[position()=1][@href]"/>
> 
[...]
> 
> This removes the anchor element.. but I just want to remove 
> the "href" attribute of element.

<xsl:template match="//body/namespace/form/snip/csf/div/center/p[1]/a[1]/@href"/>

Cheers,

Jarno

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member