Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing 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-->
    Bookmark Topic Watch Topic
  • New Topic