Re: Does DTD validation work with namespaces?
by Rick JELLIFFE other posts by this author
Aug 9 2000 12:44PM messages near this date
Re: Does DTD validation work with namespaces?
|
Re: Does DTD validation work with namespaces?
Norman Walsh wrote:
> But to say that you can mix them "willy nilly" violates the principals
> of validity at their core.
That's a key point, I think. Roger Costello has argued very strongly
that namespaced-vocabularies should have schema languages which are open
by default rather than closed.
The utility of the idea of "content model" almost disappears with open,
namespaced schemas. What is important is not that a follows b*, but that
information items which have a strong semantic cohesiveness should not
get decoupled. In XML Schemas this is recognised by the availability of
the different wildcards and the <any/> conplex type container (a bag
operator, allowing some of the simplest functions of SGML's DTD's &
operator). In Schematron, we throw away content models entirely.
I would go further, and suggest that content models are actually bad in
XML (in SGML they serve a lexical purpose for which they are
well-suited): this is because we have anonymous groups and various
arrangements which impose constraints but whose significance is not
available. DTDs are great for removing constants to headers, for acting
as big fat assert() statements as pre-conditions for data import, for
simple fixed structures, and for ad hoc Q&D schema development when a
60/40% solution is good enough.
But start adding namespace-awareness and I think they are being
stretched far beyond their capabilities: if you add namespace-awareness
the next stumbling block woudl be openness, as James and Norman are
bringing out.
I am unmatched in how much I like DTDs the same as everyone else who
likes them more. But inventing new schema languages that either will
affect validity (if the DTD is in the subsets) or which doesn't include
datatyping (if the DTD is external and invoked by attribute or PI) don't
seem very promising to me.
If you want schemas that are namespace aware get behind RELAX, or
integrate Schematron, or review and test XML Schemas against some nice
big schemas, or implement proper SGML architectural forms processors, or
get a project up to create some new schema language (e.g. what about a
schema language that can cope with XSL-FO inheritence structures and
xml:lang, and which handles whitespace normalization in a smarter way?
or which can handle RDF abbreviated syntax)?
DTDs have dimishing returns. In SGML Architecutral forms and Lexical
Types Definition Requirements, SGML syntax was extended with some new
types of markup declarations (e.g. <!LTDR ...> ) which made the
declarations non-SGML, and required a custom parser. This is definitely
the wrong way to go!
Rick Jelliffe
Thread:
Paul W. Abrahams
Rick JELLIFFE
W. E. Perry
Jonathan Borden
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
John F. Schlesinger
Jonathan Borden
Simon St.Laurent
W. E. Perry
John Cowan
Rick JELLIFFE
Rick JELLIFFE
Sean McGrath
Simon St.Laurent
Jonathan Borden
Sean McGrath
Rick JELLIFFE
Rick JELLIFFE
Simon St.Laurent
James Robertson
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
Paul W. Abrahams
Jonathan Borden
Paul W. Abrahams
Rick JELLIFFE
Dan Vint
Rick JELLIFFE
Marcus Carr
Michael Champion
John Cowan
John Cowan
John Cowan
Michael Champion
Winchel 'Todd' Vincent, III
John Cowan
Jonathan Borden
sam th
Jonathan Borden
Simon St.Laurent
John Cowan
John Cowan
John Cowan
Simon St.Laurent
Richard Lanyon
John Cowan
Jonathan Borden
John Cowan
Simon St.Laurent
John Cowan
Jonathan Borden
Rick JELLIFFE
james anderson
Winchel 'Todd' Vincent, III
Winchel 'Todd' Vincent, III
Rick JELLIFFE
Norman Walsh
Jonathan Borden
Winchel 'Todd' Vincent, III
Jonathan Borden
Norman Walsh
Winchel 'Todd' Vincent, III
Amy Lewis
Eric Bohlman
John Cowan
Simon St.Laurent
Jeff Greif
Jonathan Borden
Elliotte Rusty Harold
Sean McGrath
Simon St.Laurent
Joe English
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
W. E. Perry
Jonathan Borden
John Cowan
John Cowan
Sean McGrath
W. E. Perry
John F. Schlesinger
Sean McGrath
Michael Champion
Michael Champion
Paul W. Abrahams
John Cowan
Paul W. Abrahams
Paul W. Abrahams
Simon St.Laurent
Martin Gudgin
Jonathan Borden
Simon St.Laurent
Tim Bray
Jonathan Borden
Jack Rusher
Steve Rowe
|