Hello John,
Of course you can grab an XSD and use it. As I said in my previous
message I created a file catalog.xsd on my machine with the XML Schema
contained in the OASIS XML catalog specification. Please place the
attached files catalog.xml and catalog.xsd in the same folder and
validate them. You should get no errors because their validation does
not require an Internet connection.
Best regards,
Sorin
[EMAIL PROTECTED] wrote:
Hi Sorin,
Thanks for your reply. I really want to solve this problem on my machine
before I can do any real validation work.
I copied and pasted the content of the URL that you provided. I saved it as
catalogXSD.xml. It is located at URL:
http:/asdd.ga.gov.au/asdd/work/catalogXSD.xml
I then tried to validate the document and got the following error:
SystemID: E:\downloads\ISO19139\2006-01-13\catalogXSD.xml
Description: F HttpException-407 Proxy Authentication Required for:
http://www.w3.org/2001/XMLSchema.dtd
I set the proxy settings exactly the same for my Internet Explorer, FireFox,
and Opera browsers but still get the same error.
I am told that I don't need proxy settings for our LAN. I switched off proxy
settings and got the following error:
SystemID: E:\downloads\ISO19139\2006-01-13\catalogXSD.xml
Description: F HttpException-Could not connect
(http://www.w3.org/2001/XMLSchema.dtd)
Is the file at the above URL right? Do I have some errors in it? Why can't
I just grab an XSD and use it?
You response is greatly appreciated.
Thanks.
John
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sorin Ristache
Sent: Thursday, 23 February 2006 9:41 PM
To: [email protected]
Subject: Re: [oXygen-user] Still having problems with XSD catalogs
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.ht
ml#a.w3cxmlschema
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
[EMAIL PROTECTED] 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
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xs:schema [
<!ENTITY % schemaAttrs "
xmlns:er CDATA #IMPLIED
">
]>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:er="urn:oasis:names:tc:entity:xmlns:xml:catalog"
targetNamespace="urn:oasis:names:tc:entity:xmlns:xml:catalog" elementFormDefault="qualified">
<!-- $Id: catalog.xsd,v 1.9 2001/07/30 19:40:04 ndw Exp $ -->
<xs:simpleType name="pubIdChars">
<!-- A string of the characters defined as pubIdChar in production 13
of the Second Edition of the XML 1.0 Recommendation -->
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="publicIdentifier">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="partialPublicIdentifier">
<xs:restriction base="er:pubIdChars"/>
</xs:simpleType>
<xs:simpleType name="systemOrPublic">
<xs:restriction base="xs:string">
<xs:enumeration value="system"/>
<xs:enumeration value="public"/>
</xs:restriction>
</xs:simpleType>
<!-- The global attribute xml:base is not explicitly declared; -->
<!-- it is allowed by the anyAttribute declarations. -->
<xs:complexType name="catalog">
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element ref="er:public"/>
<xs:element ref="er:system"/>
<xs:element ref="er:uri"/>
<xs:element ref="er:rewriteSystem"/>
<xs:element ref="er:rewriteURI"/>
<xs:element ref="er:delegatePublic"/>
<xs:element ref="er:delegateSystem"/>
<xs:element ref="er:delegateURI"/>
<xs:element ref="er:nextCatalog"/>
<xs:element ref="er:group"/>
<xs:any namespace="##other" processContents="skip"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="prefer" type="er:systemOrPublic"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="public">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="publicId" type="er:publicIdentifier" use="required"/>
<xs:attribute name="uri" type="xs:anyURI" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="system">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="systemId" type="xs:string" use="required"/>
<xs:attribute name="uri" type="xs:anyURI" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="uri">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="name" type="xs:anyURI" use="required"/>
<xs:attribute name="uri" type="xs:anyURI" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="rewriteSystem">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="systemIdStartString" type="xs:string" use="required"/>
<xs:attribute name="rewritePrefix" type="xs:string" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="rewriteURI">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="uriIdStartString" type="xs:string" use="required"/>
<xs:attribute name="rewritePrefix" type="xs:string" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="delegatePublic">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="publicIdStartString" type="er:partialPublicIdentifier" use="required"/>
<xs:attribute name="catalog" type="xs:anyURI" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="delegateSystem">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="systemIdStartString" type="xs:string" use="required"/>
<xs:attribute name="catalog" type="xs:anyURI" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="delegateURI">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="uriStartString" type="xs:string" use="required"/>
<xs:attribute name="catalog" type="xs:anyURI" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="nextCatalog">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="catalog" type="xs:anyURI" use="required"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="group">
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element ref="er:public"/>
<xs:element ref="er:system"/>
<xs:element ref="er:uri"/>
<xs:element ref="er:rewriteSystem"/>
<xs:element ref="er:rewriteURI"/>
<xs:element ref="er:delegatePublic"/>
<xs:element ref="er:delegateSystem"/>
<xs:element ref="er:delegateURI"/>
<xs:element ref="er:nextCatalog"/>
<xs:any namespace="##other" processContents="skip"/>
</xs:choice>
<xs:attribute name="prefer" type="er:systemOrPublic"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:element name="catalog" type="er:catalog"/>
<xs:element name="public" type="er:public"/>
<xs:element name="system" type="er:system"/>
<xs:element name="uri" type="er:uri"/>
<xs:element name="rewriteSystem" type="er:rewriteSystem"/>
<xs:element name="rewriteURI" type="er:rewriteURI"/>
<xs:element name="delegatePublic" type="er:delegatePublic"/>
<xs:element name="delegateSystem" type="er:delegateSystem"/>
<xs:element name="delegateURI" type="er:delegateURI"/>
<xs:element name="nextCatalog" type="er:nextCatalog"/>
<xs:element name="group" type="er:group"/>
</xs:schema>
<?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 catalog.xsd">
<system systemId="http://schemas.opengis.net/xlink/1.0.0/xlinks.xsd"
uri="file:///C:/temp/support/ISO19139schemas/ISO19139schemas/xlink/xlinks.xsd"/>
<system systemId="http://schemas.opengis.net/gml/3.1.0/xlink/xlinks.xsd"
uri="file:///C:/temp/support/ISO19139schemas/ISO19139schemas/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>_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user