W3C home > Mailing lists > Public > www-xpath-comments@w3.org > April to June 2000

Re: Whitespace outside the document element

From: Steve DeRose <Steven_DeRose@brown.edu>
Date: Sat, 3 Jun 2000 00:50:59 -0400
Message-Id: <v03110700b55e3e93025c@[168.191.178.155]>
To: John Cowan <jcowan@reutershealth.com>, www-xpath-comments@w3.org
At 5:17 PM -0400 6/2/00, John Cowan wrote:
>I would like a clarification on the status of whitespace outside the
>document element in the XPath data model.  Clause 5.1 speaks of
>the children of the root node being an element node and possible
>comment nodes and processing instruction nodes; there is no mention
>of text nodes.
>
>DOM definitely forbids such nodes at both Level 1 and Level 2.
>SAX does not signal an event for such whitespace.  That means that
>if such whitespace is in the model, XPath processors cannot be
>layered directly over either DOM or SAX.

I would certainly favor keeping such whitespace out of the model -- both
for compatibility with other specs like DOM, and because I'd think it very
bizarre if someone wanted to process a document differently based solely on
such whitespace....

Steven_DeRose@Brown.edu; http://www.stg.brown.edu/~sjd
Received on Monday, 5 June 2000 12:33:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:53 GMT