Relax NG schema
Martin Klang <[email protected]> Fri, 27 Aug 2004 18:44:50 +0100
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I've created a Relax NG schema definition for o:XML [1] It's more complete and accurate than the WXS schema, mostly because the RNG format is more expressive. When used with the Emacs nxml-mode [2] it basically turns Emacs into an o:XML IDE, with on-the-fly validation and context-sensitive element and attribute completion, plus all the 'usual' nxml features such as syntax highlighting and auto-indentation. Having opened an o:XML file in Emacs you can load the schema and validate with: M-x rng-set-schema-file-and-validate Though it's nicer to automatically load the schema when you open a '.oml' file: copy the file 'lang.rnc' to 'schema/o-xml.rnc' in your nxml installation directory, and add these lines to 'schema/schemas.xml': <uri pattern="*.oml" typeId="o:XML"/> <namespace ns="http://www.o-xml.org/lang/" typeId="o:XML"/> <typeId id="o:XML" uri="o-xml.rnc"/> have fun, /m [1] Relax NG compact syntax schema for o:XML: http://download.pingdynasty.com/o-xml/resources/lang.rnc [2] James Clark nxml-mode for Emacs : http://www.thaiopensource.com/download/ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________