← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [xml-dev] giving xml a colonic: re-opening (or re-opining on) an old argument

From
John Cowan <>
To
Amelia A Lewis <>
Date
2011-09-10T18:36:34Z
ID
<>
Thread
Re: [xml-dev] giving xml a colonic: re-opening (or re-opining on) an old argument
Amelia A Lewis scripsit:

> Some proposed best practices for a namespaces-light set of XML schemas >
and instances: no QNames in content. No prefixed elements (change the >
mapping of the default prefix: xmlns=).  When foreign attributes are >
used, define the prefix mapping in the same element (xmlns:prefix= >
wherever prefix:name= appears).

MicroXML doesn't allow prefixed elements, only prefixed attributes.
But more to the point, namespaces are specified by ordinary attributes,
and if you move an element around (for example) its namespace may change.
This is part of the simplification of the data model to:

        A tree of elements, each of which has a name (a string), an
        attribute map (a map of strings to strings), and a list of
        children (either elements or strings).

-- 
He played King Lear as though           John Cowan <>
someone had played the ace.             http://www.ccil.org/~cowan
        --Eugene Field
← Prev in month ← Prev in thread
Next in thread → Next in month →