[
Lists Home |
Date Index |
Thread Index
]
- From: David Megginson <ak117@freenet.carleton.ca>
- To: xml-dev@ic.ac.uk
- Date: Thu, 8 Jan 1998 10:07:33 -0500
Peter Murray-Rust writes:
> Suggest that you rephrase it as questions. e.g. Q11 "Should SAX be
> able to recreate an ESIS stream?" I'd want good evidence why. [One
> reason could be that in that way one can easily compare the output
> of parsers, and also compare it with nsgmls and other ESIS-aware
> tools.]
You would find such a comparison surprisingly difficult, because the
order of attributes may vary and because different parsers will
divide character data into chunks differently. For example, if you
have
<listing>
<![CDATA[
<sample>text</sample>
]]>
</listing>
Ælfred will deliver one chunk of character data:
"\n\n\n <sample>text</sample>\n\n\n"
while another parser might deliver three:
"\n\n"
"\n <sample>text</sample>\n"
"\n\n"
The same applies to expanded entities, character references, etc.
All the best,
David
--
David Megginson ak117@freenet.carleton.ca
Microstar Software Ltd. dmeggins@microstar.com
http://home.sprynet.com/sprynet/dmeggins/
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|