[
Lists Home |
Date Index |
Thread Index
]
Ann Navarro scripsit:
> I've never claimed to be a parser developer, but I don't believe that
> they'd have to be built into the parser itself.
Currently, parsers have five built-in entities: references to those are
always understood (namely lt, gt, quot, apos, amp). To get parsers to
understand more entity references, you use a DTD to declare the entities
you want, either one-by-one in the internal subset or in bulk using an
external parameter entity/external subset.
> You can't
> define entities in XML Schema (except by using a DTD, which doesn't count,
> IMO). Let's fix that, and it would work just as entities defined in DTDs
> would. Problem solved for XHTML, and any other language development effort.
Then you wind up with documents that contain entity references but don't
declare any entities. That's not well-formed XML 1.x. (You can make it
technically well-formed but invalid by using a dummy DTD with a dummy
external subset.)
As long as entity references are resolved at parse time, they simply can't
be done at schema validation time; schema validation is defined on the
output of parsing.
--
One art / There is John Cowan <jcowan@reutershealth.com>
No less / No more http://www.reutershealth.com
All things / To do http://www.ccil.org/~cowan
With sparks / Galore -- Douglas Hofstadter
|