schema locating in nxml
Bruce D'Arcus <[email protected]>
| Newsgroups | gmane.text.refdb.devel |
|---|---|
| Message-ID | <[email protected]> |
In case you want to experiment with nxml mode and my schemas, I've attached my schema locating file, which is what James Clark has come up with as a sort of analog to catalogs. Just adjust the paths to for XNOTE and MODS as needed, and the appropriate schema is loaded, based on file extension and/or root element.. Bruce
schemas.xml
(application/octet-stream, 2 KB)
<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0"> <transformURI pathSuffix=".xml" replacePathSuffix=".rnc"/> <uri pathSuffix=".xsl" typeId="XSLT"/> <uri pathSuffix=".html" typeId="XHTML"/> <uri pathSuffix=".rng" typeId="RELAX NG"/> <uri pathSuffix=".rdf" typeId="RDF"/> <uri pathSuffix=".mods" typeId="MODS"/> <uri pathSuffix=".xnote" typeId="XNOTE"/> <namespace ns="http://www.w3.org/1999/XSL/Transform" typeId="XSLT"/> <namespace ns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" typeId="RDF"/> <namespace ns="http://www.w3.org/1999/xhtml" typeId="XHTML"/> <namespace ns="http://relaxng.org/ns/structure/1.0" typeId="RELAX NG"/> <namespace ns="http://thaiopensource.com/ns/locating-rules/1.0" uri="locate.rnc"/> <namespace ns="http://www.loc.gov/mods/v3" typeId="MODS"/> <documentElement localName="stylesheet" typeId="XSLT"/> <documentElement prefix="xsl" localName="transform" typeId="XSLT"/> <documentElement localName="html" typeId="XHTML"/> <documentElement localName="grammar" typeId="RELAX NG"/> <documentElement prefix="" localName="article" typeId="DocBook"/> <documentElement prefix="" localName="book" typeId="DocBook"/> <documentElement prefix="" localName="mods" typeId="MODS"/> <documentElement prefix="" localName="modsCollection" typeId="MODS"/> <documentElement prefix="" localName="xnote" typeId="XNOTE"/> <documentElement prefix="" localName="xnoteset" typeId="XNOTE"/> <documentElement localName="RDF" typeId="RDF"/> <documentElement prefix="rdf" typeId="RDF"/> <documentElement localName="locatingRules" uri="locate.rnc"/> <typeId id="XSLT" uri="xslt.rnc"/> <typeId id="RELAX NG" uri="relaxng.rnc"/> <typeId id="XHTML" uri="xhtml.rnc"/> <typeId id="DocBook" uri="docbook.rnc"/> <typeId id="RDF" uri="rdfxml.rnc"/> <typeId id="MODS" uri="/Users/darcusb/Projects/mods-schema/mods-bn.rnc"/> <typeId id="XNOTE" uri="/Users/darcusb/Projects/mods-schema/biblio-notes.rnc"/> </locatingRules>