This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Changing an attribute wherever it may occur
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Changing an attribute wherever it may occur
- From: mjyoungblut at mmm dot com
- Date: Thu, 27 Sep 2001 12:51:41 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
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