RE: [oXygen-user] Setting up catalog files for W3C XML Schemas

George, You were absolutely right! I unchecked the "Use only XML Schema for validation" check box and both the catalog file and the XML document instance validated. Thanks. John
-----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of George Cristian Bina Sent: Thursday, 19 May 2005 5:15 PM To: Hockaday John Cc: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] Setting up catalog files for W3C XML Schemas
Hi John,
Oxygen has an option that allows a not so common configuration to work, that is to specify a DTD and use entities but validate against XML Schema. I think you enabled this option and in this case the validation will be done always with a schema, that is the DTD validation is disabled. Please check the Options->Preferences -- XML -- XML Parser options -- Use only XML Schema for validation and disable it if you want to validate against DTDs.
Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Hi,
I'm still having problems with setting up catalog files. I have created a catalog file to link to relative paths to the DTDs. When I
John.Hockaday@ga.gov.au wrote: try to validate
the catalog file I get this error:
http://www.w3.org/TR/xmlschema-1/#cvc-elt E cvc-elt.1: Cannot find the declaration of element 'catalog'. anzliccatalog.xml file:/E:/downloads/anzliccatalog.xml 6:1
I have changed the entry in the options => preferences => XML => XML Catalog to point to the anzliccatalog.xml as follows:
file:/E:/downloads/anzliccatalog.xml
The catalog file looks like this:
<?xml version="1.0"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
<public publicId="-//ANZLIC//DTD ANZMETA 1.3//EN" uri="./sgml/anzmeta-1.3.dtd"/>
<public publicId="ISO 8879-1986//ENTITIES Added Latin 1//EN//XML" uri="./sgml/ISOlat1.pen"/> <public publicId="ISO 9573-15:1993//ENTITIES Greek Letters//EN//XML" uri="./sgml/ISOgrk1.pen"/> <public publicId="ISO 8879:1986//ENTITIES Publishing//EN//XML" uri="./sgml/ISOpub.pen"/> <public publicId="ISO 8879:1986//ENTITIES General
Technical//EN//XML"
uri="./sgml/ISOtech.pen"/> <public publicId="ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML" uri="./sgml/ISOnum.pen"/> <public publicId="ISO 8879:1986//ENTITIES Diacritical
Marks//EN//XML"
uri="./sgml/ISOdia.pen"/> <public publicId="ISO 8879:1986//ENTITIES Added Latin 1//EN//XML" uri="./sgml/ISOlat1.pen"/>
<!-- XHTML Stuff --> <public publicId="-//W3C//DTD XHTML 1.0 Strict//EN" uri="./sgml/xhtml1/DTD/xhtml1-strict.dtd"/> <public publicId="-//W3C//DTD XHTML 1.0 Transitional//EN" uri="./sgml/xhtml1/DTD/xhtml1-transitional.dtd"/> <public publicId="-//W3C//DTD XHTML 1.0 Frameset//EN" uri="./sgml/xhtml1/DTD/xhtml1-frameset.dtd"/> <public publicId="-//W3C//ENTITIES Latin 1 for XHTML//EN" uri="./sgml/xhtml1/DTD/xhtml1-lat1.ent"/> <public publicId="-//W3C//ENTITIES Symbols for XHTML//EN" uri="./sgml/xhtml1/DTD/xhtml1-symbol.ent"/> <public publicId="-//W3C//ENTITIES Special for XHTML//EN" uri="./sgml/xhtml1/DTD/xhtml1-special.ent"/>
<!-- Document Type Definitions --> <public publicId="-//ANZLIC//DTD ANZMETA 1.3//EN" uri="./sgml/anzmeta/anzmeta-1.3.dtd"/> <public publicId="-//ANZLIC//DTD ANZMETA 1.2//EN" uri="./sgml/anzmeta/anzmeta-1.2.dtd"/> <public publicId="-//ANZLIC//DTD ANZMETA 1.1//EN" uri="./sgml/anzmeta/anzmeta-1.1.dtd"/> <public publicId="-//IndexGeo//DTD ANZMETA Resource 1.1//EN" uri="./sgml/indexgeo_resource.dtd"/> <public publicId="-//ANZLIC//DTD QSIIS 1.3//EN" uri="./sgml/qsiis-1.3.dtd"/> <public publicId="-//QSIIS//DTD QSIIS 1.3//EN" uri="./sgml/qsiis-1.3.dtd"/> <public publicId="-//NSW NRIMS//DTD ANZMETA NSW NRIMS Page
1 v1.0//EN"
uri="./sgml/anzmeta-nswnrims-1-v10.dtd"/>
</catalog>
I have even downloaded the catalog.dtd file and it doesn't validate.
Thanks in advance for any help that you can provide.
John _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (1)
-
John.Hockaday@ga.gov.au