The Default Template Rule for Comment and Processing Instruction Nodes
This is the default template rule for comments and processing instructions:
<xsl:template match="processing-instruction( )|comment( )"/>
It matches all comments and processing instructions. However, it does not output anything into the result tree. That is, unless a stylesheet provides specific rules matching comments or processing instructions, no part of these items will be copied from the input document to the output document.
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.