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: How does StylusStudio use OASIS Catalog document
Author: Simon Cox
Date: 04 Oct 2004 01:04 AM
I want to use local copies of schema documents for validation instead of the "reference" versions that are available via http.
The best method is to use an OASIS Catalog, either the "rewriteURI" or "uri" element to remap the address.

Stylus Studio supports OASIS Catalog, but I'm trying to understand how this works.
There are various ways to associate a catalog document with a project, but I can't figure out how they get invoked during processing.

For example:
1. is it necessary to always add the BaseCatalog to a project, in order to load the links to the Oasis Catalog XSD, etc?
2. it appears that the internal validator simply invokes an associated catalog automatically, or is a [nextCatalog] element added somewhere (where?) when you add a catalog to a project
3. Judging from the error messages, it does not appear that the external validators use the catalogs associate with a project.
Does this require extra arguments in the Options for Custom Validation Engines?
How can this be done?

Simon Cox

Posttop
Tony LavinioSubject: How does StylusStudio use OASIS Catalog document
Author: Tony Lavinio
Date: 04 Oct 2004 02:01 AM
Q1. is it necessary to always add the BaseCatalog to a project, in order to load the links to the Oasis Catalog XSD, etc?
A1. No. You can add any OASIS catalogs to the project, and they will be searched in the order listed. We provide the BaseCatalog functionality as a convenience.

Q2. it appears that the internal validator simply invokes an associated catalog automatically, or is a [nextCatalog] element added somewhere (where?) when you add a catalog to a project
A2. The internal validator will respect any catalogs in the project, and if they have nextCatalog links, those will be followed. We don't hide anything; there are no hidden catalogs. Only the ones you put in the project, and any that those delegate to, are searched.

Q3. Judging from the error messages, it does not appear that the external validators use the catalogs associate with a project.
Does this require extra arguments in the Options for Custom Validation Engines?
How can this be done?
A3. Only the built-in processors and validators can use these catalogs. There is no unified way or standard mechanism for plugging in custom uri resolvers that we can use to inform an arbitrary external validator of the catalogs available. However, if you know that you are using a specific catalog with a specific validator that supports catalogs, you can add a new custom engine which wraps the necessary options together, and call it as one of the built-in ones is called.

 
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.