Re: NOTATION, ENTITY and ENTITIES, again

Henry S. Thompson scripsit:

> I'm surprised/possibly dismayed to find that the relevant notation and
> and entity decls are among the few things which the XML
> spec. _requires_ to be reported to an application, on encountering an
> attribute of type ENTITY, ENTITIES or NOTATION. . .

Yes, and you have to report attributes, but you don't have to report
elements.  Sigh.

My draft MicroXML spec[1] requires parsers to report the *whole* MicroXML
data model, viz: report each element along with its name, attribute-map
from strings to strings, and child-sequence (containing strings and/or
elements, with adjacent strings coalesced).  Simple and elegant.

[1] http://www.ccil.org/~cowan/microxml.txt

-- 
John Cowan  cowan@ccil.org  http://ccil.org/~cowan
The penguin geeks is happy / As under the waves they lark
The closed-source geeks ain't happy / They sad cause they in the dark
But geeks in the dark is lucky / They in for a worser treat
One day when the Borg go belly-up / Guess who wind up on the street.

Received on Thursday, 17 February 2011 17:21:42 UTC