[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Xpath of an attribute


Subject: RE: [xsl] 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