• 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
Posts: 21117
32
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