Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

modify the value of an existing attribute in XSLT

 
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-->
</xsl:attribute>
</xsl:template>
 
    Bookmark Topic Watch Topic
  • New Topic