Support James Clark's schema locating rules

This should cover W3C XML Schema, Relax NG and DTD related problems.
Posts: 4

Support James Clark's schema locating rules

Tue Apr 21, 2009 11:52 pm

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.

For example, I have:

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

<namespace ns="" uri="xliff.rnc"/>
<documentElement localName="xliff" uri="xliff.rnc"/>

<namespace ns="" 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="" uri="xmlschema.rnc"/>

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

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

<documentElement localName="java" uri="javabeans.rnc"/>
Site Admin
Posts: 2100

Re: Support James Clark's schema locating rules

Thu Apr 23, 2009 11:26 am


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 Cristian Bina

Return to “XML Schemas”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest