Stripping comments and processing instructions


The Data Model WD describes three flags that can be set when creating
a node tree: ignore-whitespace, ignore-comments and

The first flag is managed (presumably) through xsl:strip-space and
xsl:preserve-space. Shouldn't there be similar XSLT declarations for
stripping and preserving comments and processing instructions?

(It might be helpful if the processing instruction one used the name
of a processing instruction to work out whether to strip it or not as
well as or instead of the identity of the parent element.)


Jeni Tennison

Received on Tuesday, 15 January 2002 08:04:46 UTC