OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: java pull parser / fragment processing

[ Lists Home | Date Index | Thread Index ]
  • From: Stefan Haustein <stefan.haustein@trantor.de>
  • To: Paul Grosso <pgrosso@arbortext.com>, "xml-dev@ic.ac.uk" <xml-dev@ic.ac.uk>
  • Date: Mon, 27 Dec 1999 21:57:01 +0100

> Perhaps, then, you could define what you mean by "fragment"
> if it doesn't match the definition in the W3C spec.  I don't
> find it a word with a necessarily obvious precise definition
> when used in relation to XML.

What I mean by "fragment" is exactly what is defined in
http://www.w3.org/TR/WD-xml-fragment. But in contrast to the spec I am
not addressing general fragment interchange problems, but how to hand
over a parser between different fragment processors. For example, if I
nest xhtml into an xml message envelope:

<message>
  <sender>agent1</sender> 
  <receiver>agent2</receiver>
  <content type="xhtml">
   <xhtml>
    ....
   </xhtml>
  </content>
</message>

In the SAX push world, I cannot simply switch the DocumentHandler to my
xhtml processor when I reach the content start tag (how do I switch
back? how do I get the result?). With a pull model, I can hand over the
parser to the xhtml processor. The xhtml processor "pulls" out its
events and returns. Then I can continue parsing the envelope.

Best regards

Stefan 


-- 
KJAVA AWT project: www.trantor.de/kawt
SAX-based access to WBXML and WML: www.trantor.de/wbxml

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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe 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)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS