Re: MicroXML design goals

Andrew Welch scripsit:

> Well for me xml:lang is application level thing (as discussed), 

Of course.  All four xml: attributes are application-level (as is
xml:Father, which nobody uses).  The reason to include them is their
universal semantics.

> xml:space is only ever really needed to selectively not strip
> whitespace when whitespace stripping is performed by the parser, 

An XML parser that strips whitespace (other than whitespace outside the
document element) is non-conforming.  A parser may *mark* whitespace
as ignorable by the application, if it knows that the element containing
the whitespace has an element-only content model; this is done in SAX
using the ignorableWhitespace callback.  But it can't just drop whitespace
on the floor.

-- 
John Cowan  cowan@ccil.org  http://ccil.org/~cowan
Any sufficiently-complicated C or Fortran program contains an ad-hoc,
informally-specified bug-ridden slow implementation of half of Common Lisp.
        --Greenspun's Tenth Rule of Programming (rules 1-9 are unknown)

Received on Tuesday, 14 August 2012 16:25:14 UTC