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

SAX TypeHandler was: Alternatives to XML Schemas

  • From: Jonathan Borden <jborden@m...>
  • To: Rick Jelliffe <ricko@a...>, xml-dev@l...
  • Date: Wed, 07 Mar 2001 17:33:54 -0500

typehandler xml
Rick Jelliffe wrote:

>
> The reason why XML Schemas will initially be used for validation most is
> because, until we get DOM and SAX APIs for the PSVI or XSLT 2 and XPath2
> come along (for better or worse), all PSVI solutions are proprietary or
> hidden inside an application and so invisible.

Exactly. The Infoset is an abstraction which becomes real when you use a DOM
or SAX or whatever XML interface you choose. When type information is
exposed in DOM Level n, programs which have no use for it will still work
using DOM Level n-1. The immediate danger is that the PSVI, having no
physical incarnation, is just this, an abstraction.

For example if we define a SAX interface for type information such as
"TypeHandler", then we can see how such information is to be used in an XML
Schema independent fashion (for example a RELAX or TREX or Schematron
processor might emit the same type information as an XML Schema processor).

A piece of software might indicate its interest in type information by its
implementation of the TypeHandler interface (i.e. the default is a stub). To
an uninterested application, no harm done.

One could also define an interface by which a schema processor might
indicate per element/attribute validity -- though I'm still unsure what a
'partially valid' document means -- except to something like an editor.

-Jonathan


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-2013 All Rights Reserved.