Alter a single attribute with XSLT

Posted by Pete Montgomery on Stack Overflow See other posts from Stack Overflow or by Pete Montgomery
Published on 2010-06-07T21:23:30Z Indexed on 2010/06/07 21:32 UTC
Read the original article Hit count: 262

Filed under:
|

Hello!

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
    <compilation debug="true" defaultLanguage="C#">
      <!-- this is a comment -->
    </compilation>
  </system.web>
</configuration>

What's the simplest XSLT you can think of to transform the value of the first, in this case only, /configuration/system.web/compilation/@debug attribute from true to false?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xslt