aspose file tools*
The moose likes XML and Related Technologies and the fly likes modify the value of an existing attribute in XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply locked New topic
Author

modify the value of an existing attribute in XSLT

kay lin
Ranch Hand

Joined: May 20, 2004
Posts: 132
Hi all:
I have the following XML document

Now, I want to Modify the "name" attribute of the <schema-connection-node> tag, I would like to know if the following syntax is correct


<xsl:template match="schema-root-node/schema-connection-node@name">
<!--Needs to change the attribute for this-->
<xsl:attribute name="name">
<!--do something with the 'name' attribute-->
</xsl:attribute>
</xsl:template>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: modify the value of an existing attribute in XSLT