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

XML Catalogs and Public Ids

  • To: "xml-dev" <xml-dev@l...>
  • Subject: XML Catalogs and Public Ids
  • From: "Leigh Dodds" <ldodds@i...>
  • Date: Tue, 21 Jan 2003 13:17:57 -0000
  • Importance: Normal

read .resx as xml
[apologizes if this appears twice, this is a resend after a mail problem]


Over the weekend I was reading through the XML Catalog specification [1] 
and toying with the implementation of a catalog resolver available 
through the Apache xml-commons project [2]. I was surprised about the way 
that system and public identifiers are handled, and thought I'd check in 
here to see whether I'm misinterpreting the spec (likely!) or could find 
some rationale for the behaviour.

Specifically, it would seem that System Identifiers are the preferred way 
of accessing a catalog, and Public Identifiers play second fiddle. Granted 
the spec does include a "preferred" mode for accessing the catalog but 
according to Section 7.1.2 of the spec if a system identifier can be matched 
in the catalog then that will always be used; an accompanying public 
identifier is only used as a fallback if the system id doesn't match 
(or is unavailable) and the prefer setting is "public". So public ids are 
only useful if the system identifier isn't available. Given that you 
have to provide both in XML, public ids seem pretty redundant.

Toying with the command-line resolver application shows behaviour consistent 
with this reading.

Everything I've read up to now set me up to expect the following: that 
Public Ids would be preferred and that System Ids would be the fallback.

What am I missing?

[2]. http://xml.apache.org/commons/


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.
First Name
Last Name
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.