]> granicus.if.org Git - docbook-dsssl/commitdiff
initial add; locating file for allowing RNG-aware editors such as
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 6 Apr 2005 12:56:14 +0000 (12:56 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 6 Apr 2005 12:56:14 +0000 (12:56 +0000)
nXML mode to automatically associate rootelement = "webpage"
documents with the DocBook Website RNC schema

website/schema/relaxng/schemas.xml [new file with mode: 0644]

diff --git a/website/schema/relaxng/schemas.xml b/website/schema/relaxng/schemas.xml
new file mode 100644 (file)
index 0000000..9f4df14
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!-- 
+  $Id$
+  This is a schema-locating file for use with a RELAX NG-aware
+  editor such as Emacs/nXML mode. It tells your editor to
+  automatically associate any documents whose root element is
+  "webpage" (that is DocBook Websited documents), with the RNC
+  schema file at the URI "website.rnc".
+
+  To use this file with Emacs/nXML mode, put the following into
+  your .emacs file:
+
+    (setq rng-schema-locating-files
+      (append
+        '("/usr/share/xml/docbook/website/schema/relaxng/schemas.xml")))
+
+   Of course, replace the pathname with the appropriate location
+   for your system.
+  -->
+<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
+  <documentElement prefix="" localName="webpage" uri="website.rnc"/>
+  <!-- <documentElement prefix="" localName="webpage" uri="website-full.rnc"/> -->
+</locatingRules>