Page 1 of 1

Support James Clark's schema locating rules

Posted: Tue Apr 21, 2009 11:52 pm
by nsushkin
oXygen support XML editing assisted by a Relax NG schema. I've been using
emacs and nxml mode for the same purpose and has build an extensive catalog
of schemas and a locating rules file. It would be nice if oXygen supported the same file for associating schemas with xml files.

http://www.dpawson.co.uk/relaxng/nxml/schemaloc.html#d574e168

For example, I have:

?xml version="1.0"?>
<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
<uri resource="schemas.xml" uri="/usr/local/share/emacs/site-lisp/nxml-mode-20041004/schema/locate.rnc"/>

<namespace ns="http://www.oasis-open.org/committees/xliff/documents/xliff.dtd" uri="xliff.rnc"/>
<documentElement localName="xliff" uri="xliff.rnc"/>

<namespace ns="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd" uri="web-jsptaglibrary_1_2.rnc"/>

<uri resource="build.xml" uri="project.rnc"/>
<documentElement localName="project" uri="project.rnc"/>

<uri resource="web.xml" uri="web-app_2_3.rnc"/>
<documentElement localName="web-app" uri="web-app_2_3.rnc"/>

<namespace ns="http://www.w3.org/2001/XMLSchema" uri="xmlschema.rnc"/>

<documentElement localName="beans" uri="spring-beans.rnc"/>

<documentElement localName="mbeans-descriptors" uri="mbeans-descriptors.rnc"/>

<documentElement localName="java" uri="javabeans.rnc"/>
...

Re: Support James Clark's schema locating rules

Posted: Thu Apr 23, 2009 11:26 am
by george
Hi,

oXygen added at some moment support for associating a file with a schema, with similar rules that look at the root element.

Since version 9 when we introduced the Author visual editing mode the document to schema association rules were updated to be document to document type associations where a document type specifies a lot more than a default schema, it specifies also CSS stylesheets, custom actions, transformation scenarios, XML Catalogs, etc. See the Options->Preferences -- Document Type Association options page for details.

Best Regards,
George