RE: [oXygen-user] Still having problems with XSD catalogs

Hi Sorin, Thanks for that information. I think that I have done to my catalog.xml file what you suggested. Here it is: <?xml version="1.0" encoding="UTF-8"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:entity:xmlns:xml:catalog file:///E:/downloads/ISO19139/2006-01-13/catalog.xsd"> <system systemId="http://schemas.opengis.net/xlink/1.0.0/xlinks.xsd" uri="file:///E:/downloads/GML3.1/GML3.1.1/xlink/xlinks.xsd"/> <system systemId="http://schemas.opengis.net/gml/3.1.0/xlink/xlinks.xsd" uri="file:///E:/downloads/GML3.1/GML3.1.1/xlink/xlinks.xsd"/> <rewriteURI uriIdStartString="http://schemas.opengis.net/gml/3.1.1/base" rewritePrefix="file:///E:/downloads/GML3.1/GML3.1.1/base"/> </catalog> Did I get it right? If so I still get the same error when I try to validate the catalog.xml document. I also get an error when I try to validate the catalog.xsd document. You help is greatly appreciated on this matter. Thanks. John
-----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of Sorin Ristache Sent: Saturday, 18 February 2006 12:44 AM To: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] Still having problems with XSD catalogs
Hello John,
Looking at the catalog.xml file I see that all the elements are in no namespace. In an OASIS XML Catalog they must be in the "urn:oasis:names:tc:entity:xmlns:xml:catalog" namespace. That means you have to place all the elements of your catalog in that namespace, for example by adding the xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" attribute to the root element. Also you have to bind the xsi prefix to the XML Schema namespace, otherwise it is not a well-formed XML document.
Please look at the file [oXygen-install-folder]/frameworks/docbook/dtd/catalog.xml for an example catalog.
Best regards, Sorin
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com/
Hi John,
Oxygen uses system entries to resolve schema locations as we use the parser at SAX level and there is no way to distinguish between external entities and schema locations. There was a discussion about
list some time ago if you want to know more details. The
George Cristian Bina wrote: this on this thread starts
here:
http://www.oxygenxml.com/pipermail/oxygen-user/2005-September/ 000631.html
and continues with
http://www.oxygenxml.com/pipermail/oxygen-user/2005-October/00 0633.html
The solution is to add also system entries to your catalog.
Best Regards, George
---------------------------------------------------------------------
George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
John.Hockaday@ga.gov.au wrote:
Hi All,
I have been trying to use an XSD catalog file for months without any luck. As a matter of fact I have *never* been able to get XSD catalog files working on Oxygen. Currently I am using Oxygen 7.0 on a Windows 2000 platform.
The best I can do is the following error:
http://asdd.ga.gov.au/asdd/work/catalogerror.txt
The catalog preferences look like this:
http://asdd.ga.gov.au/asdd/work/catalogpreferences.gif
The catalog file looks like this:
http://asdd.ga.gov.au/asdd/work/catalog.xml
I am using the following catalog.xsd:
http://asdd.ga.gov.au/asdd/work/catalog.xsd
I don't understand the error. The path to the catalog.xml file is correct and it is readable. Why is this error occurring? I can only find catalog files for DTDs not XSDs.
Thanks.
John
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi John, I get no validation errors for your catalog. I think there is a problem in the catalog.xsd that you are using. I created a local catalog.xsd file with the grammar contained in the OASIS XML catalog specification: http://www.oasis-open.org/committees/entity/spec-2001-08-06.html#a.w3cxmlsch... I changed the xsi:schemaLocation attribute of your catalog file to point to my local catalog.xsd. I got no validation errors for catalog.xsd or your catalog file. Best regards, Sorin John.Hockaday@ga.gov.au wrote:
Hi Sorin,
Thanks for that information. I think that I have done to my catalog.xml file what you suggested. Here it is:
<?xml version="1.0" encoding="UTF-8"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:entity:xmlns:xml:catalog file:///E:/downloads/ISO19139/2006-01-13/catalog.xsd"> <system systemId="http://schemas.opengis.net/xlink/1.0.0/xlinks.xsd" uri="file:///E:/downloads/GML3.1/GML3.1.1/xlink/xlinks.xsd"/> <system systemId="http://schemas.opengis.net/gml/3.1.0/xlink/xlinks.xsd" uri="file:///E:/downloads/GML3.1/GML3.1.1/xlink/xlinks.xsd"/> <rewriteURI uriIdStartString="http://schemas.opengis.net/gml/3.1.1/base" rewritePrefix="file:///E:/downloads/GML3.1/GML3.1.1/base"/> </catalog>
Did I get it right? If so I still get the same error when I try to validate the catalog.xml document.
I also get an error when I try to validate the catalog.xsd document.
You help is greatly appreciated on this matter.
Thanks.
John

Hello again, If you want to use an XML catalog for validation you have to use rewriteSystem instead of rewriteURI, because you need an external identifier catalog entry, not a URI entry. For more details see: http://www.oasis-open.org/committees/entity/spec-2001-08-06.html#s.ext.ent http://www.oasis-open.org/committees/entity/spec-2001-08-06.html#s.uri.ent Best regards, Sorin Sorin Ristache wrote:
Hi John,
I get no validation errors for your catalog. I think there is a problem in the catalog.xsd that you are using. I created a local catalog.xsd file with the grammar contained in the OASIS XML catalog specification:
http://www.oasis-open.org/committees/entity/spec-2001-08-06.html#a.w3cxmlsch...
I changed the xsi:schemaLocation attribute of your catalog file to point to my local catalog.xsd. I got no validation errors for catalog.xsd or your catalog file.
Best regards, Sorin
John.Hockaday@ga.gov.au wrote:
Hi Sorin,
Thanks for that information. I think that I have done to my catalog.xml file what you suggested. Here it is:
<?xml version="1.0" encoding="UTF-8"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:entity:xmlns:xml:catalog file:///E:/downloads/ISO19139/2006-01-13/catalog.xsd"> <system systemId="http://schemas.opengis.net/xlink/1.0.0/xlinks.xsd" uri="file:///E:/downloads/GML3.1/GML3.1.1/xlink/xlinks.xsd"/> <system systemId="http://schemas.opengis.net/gml/3.1.0/xlink/xlinks.xsd" uri="file:///E:/downloads/GML3.1/GML3.1.1/xlink/xlinks.xsd"/> <rewriteURI uriIdStartString="http://schemas.opengis.net/gml/3.1.1/base" rewritePrefix="file:///E:/downloads/GML3.1/GML3.1.1/base"/> </catalog>
Did I get it right? If so I still get the same error when I try to validate the catalog.xml document.
I also get an error when I try to validate the catalog.xsd document.
You help is greatly appreciated on this matter.
Thanks.
John
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
John.Hockaday@ga.gov.au
-
Sorin Ristache