[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

SAX2: Features and Properties

  • From: David Megginson <david@m...>
  • To: XMLDev list <xml-dev-digest@i...>
  • Date: Wed, 22 Dec 1999 10:37:34 -0500 (EST)

sax2 features
Here is my current draft of core SAX2 features and properties.

Notes:

1. Implementors are free to define their own features and properties;
   these are meant to serve only as a common core.
2. Parser can throw exceptions for unrecognized properties or
   unsupported states; the only features that must be supported are
   'true' for namespace processing and 'false' for namespace prefixes.


Features
--------

I've removed http://xml.org/sax/features/normalize-text, because its
interaction with optional hander types is too tricky.  I've aded
http://xml.org/sax/features/namespace-prefixes to preserve the
original prefixes on the local parts of names if desired.

http://xml.org/sax/features/validation
  Default value: unknown
  true: validate the document
  false: do not validate the document

http://xml.org/sax/features/external-general-entities
  Default value: unknown
  true: include external text entities
  false: do not include external text entities

http://xml.org/sax/features/external-parameter-entities
  Default value: unknown
  true: include external parameter entities
  false: do not include external parameter entities

http://xml.org/sax/features/namespaces
  Default value: true (*must* be supported)
  true: perform Namespace processing
  false: do not perform Namespace processing

http://xml.org/sax/features/namespace-prefixes
  Default value: false (*must* be supported)
  true: leave prefixes attached to the local parts of names
  false: do not leave prefixes attached to the local parts of names
  Note: will have no effect unless the 'namespaces' feature is true.

http://xml.org/sax/features/use-locator
  Default value: unknown
  true: always provide a Locator
  false: it's OK not to provide a Locator (but the parser still may)


Properties
----------

I've removed http://xml.org/sax/properties/namespace-sep, since
Namespace-qualified names are no longer reported as a single string.
I've removed the properties for LexicalHandler, DeclHandler, and
NamespaceDeclHandler because they have their own, explicit setters
now.


http://xml.org/sax/properties/dom-node
  Read-only.  Valid only during a callback (null otherwise).
  The DOM node currently being visited if SAX is being used as a DOM
  iterator and is visiting a DOM node.

http://xml.org/sax/properties/xml-string
  Read-only.  Valid only during a callback (null otherwise).
  The string of characters associated with the current event.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.