Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

modify the value of an existing attribute in XSLT  RSS feed

kay lin
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Report post to moderator
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-->
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!