XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Simon  CoxSubject: Catalog not working
Author: Simon Cox
Date: 14 Apr 2005 04:39 AM
Trying to use SS catalog support to redirect a schemaLocation, but it ain't working.

Here is the catalog document:

<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 https://www.seegrid.csiro.au/subversion/xmml/trunk/oasis/entity/catalog.xsd">
<rewriteURI uriIdStartString="http://schemas.opengis.net/" rewritePrefix="../"/>
</catalog>

The catalog document validates fine and "Use Document as Catalog" is checked.
But when I try to validate this simple schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.00">
<xs:include schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd"/>
</xs:schema>

it throws this error:

"FATAL ERROR: Cannot open http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd"

which appears to suggest that the catalog is not being used.

SS 6.1, build 287e
Windows XP sp2

Posttop
Alberto MassariSubject: Catalog not working
Author: Alberto Massari
Date: 14 Apr 2005 02:59 PM
Hi Simon,
I tried creating the document and using it as a catalog, and I can see that internally Stylus is rewriting the URL before trying to open the file; the error will always state the "official" URL.

Can you try replacing the rewritePrefix="../" with an absolute path? Maybe the path "../gml/3.1.1/base/geometryBasic0d1d.xsd" is not valid starting from the location of the catalog file.

Hope this helps,
Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.