[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Changing Attribute Value in all the ChildNodes at any

Subject: Changing Attribute Value in all the ChildNodes at any level down the current node.
From: "Animesh Sharma" <asharma@xxxxxxxxxxxxxxxx>
Date: Thu, 27 May 2004 11:06:00 +0530
childnodes value
Hi,

I have to remove a particular attribute (in following example it is "href") from all the ChildNodes of the particular node.

I tried to write template something as follows:

<xsl:template match="//body/namespace/form/snip/csf/td[position()=1]/table[position()=2]">
	<xsl:apply-templates select="@*"/>
	<xsl:attribute name="href"/>
	<xsl:copy>
		<xsl:apply-templates select="*"/>
	</xsl:copy>
</xsl:template>

But it does not seems to work as I have expected.

Thanks,
Animesh

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.