[xsl] Changing an attribute wherever it may occur

Subject: [xsl] Changing an attribute wherever it may occur
From: mjyoungblut@xxxxxxx
Date: Thu, 27 Sep 2001 12:51:41 -0500
Hi,
     Is there a way to change an attribute in any occurrence in a given
element, including children?  I have been able to do it recursively, with a
little knowledge of where the attributes might be, but is it possible to do
it all at once?  I want to assume that I don't know where the attribute
will be at.

For example,
<A>
     <B Action='A'>...</B>
     <C>
          <D Action='B'>...</D>
     </C>
     <E>
          <F>
               <G Action='A'>...</G>
          </F>
     </E>
</A>

Is it possible to copy <A> while changing all of the @Action attributes to
'M'?

Thanks for your help in advance,
Matt Youngblut


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread