Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resetting the value of an attribute which is already set.

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an attribute set using:
<xsl:attribute name="flag">false</xsl:attribute>

Now, I want to reset the flag variable to true based on some condition. How can I do that?

Thanks and regards,
Amit Sanghai.
 
Paul Clapham
Sheriff
Pie
Posts: 20768
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean, after you have used an XSL transformation including that line to output an XML document, you want to change that attribute? Well, another XSL transformation could do it. Or you could load it into a DOM and change the attribute there. Or... plenty of other ways.

Or do you mean something else? There's nothing special about using <xsl:attribute> to add an attribute to an element.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic