W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2002

RE: Stripping comments and processing instructions

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Tue, 15 Jan 2002 16:03:38 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210622B908@daemsg02.software-ag.de>
To: "'Jeni Tennison'" <jeni@jenitennison.com>, xsl-editors@w3.org
Thanks for the comment. I think the extra flags in the data model were put
there largely to satisfy the rule that processing instructions and comments
are ignored in a stylesheet; I don't think there has been any pressure to
allow these flags to be set for source documents, though I'm sure someone
would find a use for it. I hope we can avoid adding too much complexity in
this area as the whitespace stripping rules already create enough problems!

Mike Kay

> The Data Model WD describes three flags that can be set when creating
> a node tree: ignore-whitespace, ignore-comments and
> ignore-processing-instructions.
> 
> 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.)
> 
> Cheers,
> 
> Jeni
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 
Received on Tuesday, 15 January 2002 10:03:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT