• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resetting the value of an attribute which is already set.

 
amit sanghai
Ranch Hand
Posts: 231
  • 0
  • 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: 20176
25
MySQL Database
  • 0
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic