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

Re: SAX2: summary of Namespace-support arguments

  • From: James Clark <jjc@j...>
  • To: Tim Bray <tbray@t...>
  • Date: Sun, 19 Dec 1999 12:16:22 +0700

Re: SAX2: summary of Namespace-support arguments
Tim Bray wrote:
> 
> At 12:22 PM 12/18/99 -0500, David Megginson wrote:
> >#3 (James Clark)...  James would like to create a new Name class that
> >  includes the
> >  original prefix (if any) as well as the Namespace URI and local name.

> Actually, you are slightly mis-characterizing James' position.  I don't
> think he cares about which prefix was actually used on any particular
> name, but he wants APIs to manifest the prefix/namespace mapping so that
> they can be used in things like XPath expressions.

I do indeed want that, and in the past I've argued against *requiring*
processors to provide information about the prefix used. I've become a
lot less negative about this prefix information recently and I think
it's better for an API to provide it.  My reasons are:

1. I view namespaces as much more core to XML than DTDs.  I want to be
able to build namespace processing into the parser at very low-level (so
it has negligible overhead); but I don't want to build XML 1.0
validation in.  This means I need an API that is both namespace aware
and allows XML 1.0 validation (which of course requires prefix) to be
layerd on top of it.

2. DOM Level 2 needs prefixes.  It would be very unfortunate if SAX 2
was such that DOM Level 2 could not be layered on top of it.

3. I want to use DocumentHandler not just an interface between a parser
and an application but between an application and a serializer. 
Serialization can in fact be as performance critical as parsing.  A
serializer can do it's job much more efficiently and easily if it has
the prefix available rather than having to figure it out from the
prefix/namespace bindings in effect. Although the combination of XML 1.0
DTDs and namespaces is a problematic, many users want to use namespaces
and still have their documents been XML 1.0 valid; this may apply to the
documents they are creating with a DocumentHandler.  For a serializer
that uses a DocumentHandler as its interface to be able to do this, it
has to have prefix information.

James



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