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

Re: SAX 2.0 baseURI property was: Re: SAX 2.0 Enhancement proposal(2nd E

  • From: Rob Lugt <roblugt@e...>
  • To: Jonathan Borden <jborden@m...>, xml-dev@l...
  • Date: Fri, 15 Jun 2001 21:17:54 +0100

baseuri
Jonathan Borden wrote:
> >
> > Can I take that as a vote for option (b) - the creation of a new
property,
> > leaving the systemId to contain just the system identifier from the xml
> > document?
>
> Yes, to be clear, and for reasons including this, but also for other
> reasons, SAX needs to have a standard way to communicate the base URI to
an
> application.
>
> > If we are going to have a property containing the baseURI, there
> > is no need to overload the systemId parameter with it.
>
> perhaps this is true. Given an (absolute URI form) systemId and a base
URI,
> cannot we -reconstruct- a relative URI used to get from the base URI to
the
> systemId in URI space: i.e.
>
> relativeURI = absolutizedSystemId - baseURI
>
> via an inverse of the rules that create: absolutizedSystemId = baseURI +
> relativeURI
>
> (where + and - are not literal string operations but rather represent the
> absolutization transform in RFC 2396)
>

Jonathan, I like this proposal... a lot.  Unless I am missing something I
imagine others will feel the same.  It has the advantage of leaving
EntityResolver, DTDHandler and Locator unchanged, but seems to provide the
required information.

When others have had a chance to respond I will re-amend my proposal.

Regards
Rob

---
Rob Lugt
ElCel Technology
http://www.elcel.com



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.