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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   SAX: problem areas (was Re: SAX: Whitespace Handling)

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <ak117@freenet.carleton.ca>
  • To: xml-dev Mailing List <xml-dev@ic.ac.uk>
  • Date: Sun, 4 Jan 1998 10:11:08 -0500

Peter Murray-Rust writes:

 > I also take it as almost axiomatic that SAX should support everything in
 > the spec *relevant to those areas it addresses*.  IOW if it doesn't support
 > NOTATION it could ignore everything to do with that (e.g. NDATA.
 > NotationType) and might simply throw an Exception (SAX ignores NOTATION -
 > or whatever). [I am not making  any judgment on NOTATION - but it is
 > possibly not a core component].

I suggest that parsers using SAX should be more than welcome to
provide their own mechanisms for communicating information about
notations -- they are simply not part of the SAX information set.  For
example, I might have this in the DTD:

  <!NOTATION video SYSTEM "http://www.video.com/videospec">
  <!ENTITY clip SYSTEM "video-clip.vid" NDATA video>

  <!ELEMENT video-ptr EMPTY>
  <!ATTLIST video-ptr
    object ENTITY #REQUIRED>

and this in the document

  <video-ptr object="clip"/>

SAX will simply report that the attribute "object" has the value
"clip", without worrying that there is a notation called "video";
however, Ælfred, for example, will let you look up the type of
"object", find out that it's an entity, look up the associated
notation, and then get the notation's system identifier.



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)





 

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

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