xsl-list
[Top] [All Lists]

[xsl] Copy excluding some children

2008-10-20 15:37:55
Is there a way to copy an element excluding some children, at any depth,
using *only* an XPath 2.0 expression without using templates to exclude
such elements?

For example, given:

<A>
   <B>The pen is <C>not</C> on the table</B>
   <D>...</D>
</A>

I want to copy A without C and D obtaining:

<A>
   <B>The pen is on the table</B>
</A>


Thanks,
   Giacomo.             

--~------------------------------------------------------------------
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>