
Dear Alex, Sorin's answer clarified also this, see
rewriteSystem, etc. that a relative path must be made absolute with respect to the base URI in effect, that is *_the URI of the catalog file_* or the URI set by the xml:base attribute of the catalog elements.
All the catalog we ship in the oXygen frameworks folder and sub-folders use entries specified with relative URIs that are resolved against the URI of the catalog file that contains them. If you observe a different behavior, although I doubt that, then that would be a bug and we will appreciate if you can send us a sample and a short description to reproduce it. Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Alexander Voss wrote:
Hi,
thanks for the clarification. I read your message as saying that oXygen complies with the specification. However, as I see it this leaves an important question open: in the absence of an explicitly defined base URL, what is taken to be the base? The location of the XML catalogue or the current working directory? oXygen seems to use the latter whereas other tools seem to use the former. (e.g., Ant, see http://ant.apache.org/manual/CoreTypes/xmlcatalog.html although this page does not say anything about the xml:base attribute???) If the specification does not define what base URI is used in the absence of an xml:base attribute then it is incomplete. I should either define a sensible default (such as the XML catalogue location) or declare this illegal (i.e. you must not have a relative URI if you don't specify a base URI). IMHO the former would be much more useful. I hope I haven't missed anything. If I am right about this is it not time to change the spec?
Cheers,
Alex
oxygen-user-request@oxygenxml.com wrote:
Send oXygen-user mailing list submissions to oxygen-user@oxygenxml.com
To subscribe or unsubscribe via the World Wide Web, visit http://www.oxygenxml.com/mailman/listinfo/oxygen-user or, via email, send a message with subject or body 'help' to oxygen-user-request@oxygenxml.com
You can reach the person managing the list at oxygen-user-owner@oxygenxml.com
When replying, please edit your Subject line so it is more specific than "Re: Contents of oXygen-user digest..."
Today's Topics:
1. xml catalog relative path resolution (Alexander Voss) 2. Re: xml catalog relative path resolution (Sorin Ristache)
----------------------------------------------------------------------
Message: 1 Date: Wed, 09 Aug 2006 12:18:36 +0100 From: Alexander Voss <avoss@inf.ed.ac.uk> Subject: [oXygen-user] xml catalog relative path resolution To: oxygen-user@oxygenxml.com Message-ID: <44D9C48C.8050000@inf.ed.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
can anybody say what the resolution algorithm is for resolving relative paths given in XML catalogues? Or point me to a place that explains this? All the examples I have found use absolute paths but I want to be able to check the XML catalogue into a repository which also contains the DTD files, so people can check out the whole thing and only need to register the XML catalogue in their local preferences.
Cheers,
Alex