for example below is the xml
<products>
<product>
<name>Pen</name>
<Quantity>2</Quantity>
<Amount><Price>2</Price><Currency>USD</Currency></Amount>
</product>
<product>
<name>Pencil</name>
<Quantity>20</Quantity>
<Amount><Price>2</Price><Currency>USD</Currency></Amount>
</product>
<product>
<name>Bag</name>
<Quantity>25</Quantity>
<Amount><Price>2</Price><Currency>USD</Currency></Amount>
</product>
</products>
in my xsl i using like below to remove
<xsl:copy-of select="node()[not(self::Quantity)]"/>
I also need to remove sub node <Currency>
from the <Amount>
i try like below
<xsl:copy-of select="node()[not(self::Quantity) and not(self::Amount/Currency)]"/>
but not working fine . it will remove all node's from <Amount>
How i remove sub node <Currency>
only?