[Home] [By Thread] [By Date] [Recent Entries]

  • From: David Megginson <ak117@f...>
  • To: xml-dev@i...
  • 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@f...
Microstar Software Ltd.         dmeggins@m...
      http://home.sprynet.com/sprynet/dmeggins/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member