troubleshooting Question

Conditionally change value of element

Avatar of pennypiper
pennypiper asked on
Web Languages and Standards
7 Comments4 Solutions1392 ViewsLast Modified:

Assume the following XML file:


I need an XSLT example which will change any <A1> with a value of "0" to "11".  Everything else in the document stays the same.  

I also need an XSLT example which will change the value of any <A1> with value of "0" to "11" if and only if the value of any <B1> element is "2".  Again, everything else in the document should stay the same.

Gertone (Geert Bormans)
Information Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2006

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 4 Answers and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros