This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The last example just before 19.2 is the following: <xsl:transform version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:mode name="delete-ednotes" streamable="yes" on-no-match="deep-copy"/> <xsl:template name="main"> <xsl:stream href="book.xml"> <xsl:apply-templates mode="delete-ednotes"/> </xsl:stream> </xsl:template> <xsl:template match="ednote" mode="delete-ednotes"/> </xsl:transform> The text explains that this will remove any ednote elements. However, I think it only removes ednote when it is the root element of book.xml. The reason being that the effective mode deep-copies all nodes that are not matched, which means that when a match is not found, the whole subtree it copied and not processed further. I think the correction should be to change deep-copy to shallow-copy and the result of the transformation will be what it should be: ednote elements are removed.
Agreed, this should be shallow-copy.
Change has been applied.