Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

modify the value of an existing attribute in XSLT

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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