Re: [xml-dev] MicroXPath proposal

From
John Cowan <>
To
Date
2011-01-13T17:52:38Z
ID
<AANLkTinTAAdBDfTGt=LOTPCArr=>
Thread
Re: [xml-dev] MicroXPath proposal
mozer scripsit:

> [quoting James Clark]
> Data model.  The MicroXML specification should define a single,
> normative data model for MicroXML documents. It should be as simple
> possible:

[snip]

> * A name is a string. It can be split into two parts: a prefix, which
> is either empty or ends in a colon, and local name.

James's current version does not allow QNames as element names,
and allows only the fixed prefix "xml:" in attribute names.
I have extended it to allow general QNames in attribute names.
See http://blog.jclark.com/2010/12/more-on-microxml.html  .

> * An element probably also needs to have a flag saying whether it's an
> empty element.

The problematic HTML5 elements can be special-cased.

> It means you have also attribute and text nodes

Not necessarily, any more than the fact that elements have names requires
the model to provide "name nodes".  Note that James says the attributes
are a map rather than a list of attribute nodes, so attributes need not
be reified.

--
There is / One art                      John Cowan <>
No more / No less                       http://www.ccil.org/~cowan
To do / All things
With art- / Lessness                     --Piet Hein