xsl-list
[Top] [All Lists]

Removing attributes in a generic way ...

2005-10-12 12:53:32
Hello,
I'm trying to remove some attributes in a generic way. see example below. I need to remove all last_name attributes regardless of the node.
Is there a generic way .

Thanks in advance.


Original document
<root>
  <person first_name="Dave" last_name="Rowe">
     <person first_name="Sandra" last_name="Smith" />
  </person>
  <person first_name="Patrick" last_name="Sullivan" />
</root>


Expected output
<root>
  <person first_name="Dave">
     <person first_name="Sandra" />
  </person>
  <person first_name="Patrick" />
</root>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>