]> granicus.if.org Git - docbook-dsssl/commitdiff
Added Publishers and Legal rnc files
authorScott Hudson <scottys.log@gmail.com>
Tue, 13 May 2008 15:37:11 +0000 (15:37 +0000)
committerScott Hudson <scottys.log@gmail.com>
Tue, 13 May 2008 15:37:11 +0000 (15:37 +0000)
docbook/relaxng/legal/src/legal.rnc [new file with mode: 0644]
docbook/relaxng/publishers/src/publishers.rnc [new file with mode: 0644]

diff --git a/docbook/relaxng/legal/src/legal.rnc b/docbook/relaxng/legal/src/legal.rnc
new file mode 100644 (file)
index 0000000..81a9c8c
--- /dev/null
@@ -0,0 +1,87 @@
+# This file is a customization of DocBook V5.0 created by the 
+# OASIS DocBook Publishers Subcommittee.
+#
+# Copyright 1992-2007 HaL Computer Systems, Inc.,
+# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
+# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
+# Organization for the Advancement of Structured Information
+# Standards (OASIS).
+#
+# Release: $Id: publishers.rnc 7466 2007-09-27 14:03:55Z shudson310 $
+#
+# Permission to use, copy, modify and distribute the DocBook schema
+# and its accompanying documentation for any purpose and without fee
+# is hereby granted in perpetuity, provided that the above copyright
+# notice and this paragraph appear in all copies. The copyright
+# holders make no representation about the suitability of the schema
+# for any purpose. It is provided "as is" without expressed or implied
+# warranty.
+#
+# If you modify the DocBook schema in any way, label your schema as a
+# variant of DocBook. See the reference documentation
+# (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
+# for more information.
+#
+# Please direct all questions, bug reports, or suggestions for changes
+# to the docbook@lists.oasis-open.org mailing list. For more
+# information, see http://www.oasis-open.org/docbook/.
+#
+# ======================================================================
+
+namespace ctrl = "http://nwalsh.com/xmlns/schema-control/"
+namespace rng  = "http://relaxng.org/ns/structure/1.0"
+namespace s = "http://www.ascc.net/xml/schematron"
+namespace db = "http://docbook.org/ns/docbook"
+default namespace = "http://docbook.org/ns/docbook"
+
+start = db.set
+        | db.book
+       | db.divisions
+       | db.components
+       | db.navigation.components
+       | db.section
+       | db.para
+
+include "publishers.rnc" 
+
+   db.legalcitation =
+      element legalcitation {
+         (db.casename|db.legislation|db.parties),
+         db.country, 
+         db.year,
+         (db.court|db.legis_org),
+         db.sectionnum
+      }
+      
+   db.casename =
+        element casename {
+        db.all.inlines
+        }
+        
+   db.legislation =
+        element legislation {
+        db.all.inlines
+        }
+        
+    db.parties =
+        element parties {
+        db.person |
+        db.org |
+        db.all.inlines
+        }
+        
+     db.court =
+        element court {
+        db.all.inlines
+        }
+        
+    db.legis_org =
+        element casename {
+        db.all.inlines
+        }
+
+   db.sectionnum =
+        element sectionnum {
+        text |
+        db.sectionnum
+        }
\ No newline at end of file
diff --git a/docbook/relaxng/publishers/src/publishers.rnc b/docbook/relaxng/publishers/src/publishers.rnc
new file mode 100644 (file)
index 0000000..e0d7be5
--- /dev/null
@@ -0,0 +1,103 @@
+# This file is a customization of DocBook V5.0 created by the 
+# OASIS DocBook Publishers Subcommittee.
+#
+# Copyright 1992-2007 HaL Computer Systems, Inc.,
+# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
+# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
+# Organization for the Advancement of Structured Information
+# Standards (OASIS).
+#
+# Release: $Id: publishers.rnc 7466 2007-09-27 14:03:55Z shudson310 $
+#
+# Permission to use, copy, modify and distribute the DocBook schema
+# and its accompanying documentation for any purpose and without fee
+# is hereby granted in perpetuity, provided that the above copyright
+# notice and this paragraph appear in all copies. The copyright
+# holders make no representation about the suitability of the schema
+# for any purpose. It is provided "as is" without expressed or implied
+# warranty.
+#
+# If you modify the DocBook schema in any way, label your schema as a
+# variant of DocBook. See the reference documentation
+# (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
+# for more information.
+#
+# Please direct all questions, bug reports, or suggestions for changes
+# to the docbook@lists.oasis-open.org mailing list. For more
+# information, see http://www.oasis-open.org/docbook/.
+#
+# ======================================================================
+
+namespace ctrl = "http://nwalsh.com/xmlns/schema-control/"
+namespace rng  = "http://relaxng.org/ns/structure/1.0"
+namespace s = "http://www.ascc.net/xml/schematron"
+namespace db = "http://docbook.org/ns/docbook"
+default namespace = "http://docbook.org/ns/docbook"
+
+start = db.set
+        | db.book
+       | db.divisions
+       | db.components
+       | db.navigation.components
+       | db.section
+       | db.para
+
+include "core.rnc" {
+  db.sidebar |= notAllowed
+  db.person |= notAllowed
+  db.org |= notAllowed
+  db.parameter = notAllowed
+}
+
+   db.sidebar =
+      element sidebar {
+         db.sidebar.attlist,
+         db.sidebar.info,
+         db.all.blocks+, db.recursive.sections*
+      }
+
+db.person =
+      element person {
+         db.person.attlist,
+         db.personname,
+         (db.address|db.affiliation|db.email|db.uri|db.personblurb|db.mediaobject)*
+      }
+      
+db.org =
+      element org {
+         db.org.attlist,
+         db.orgname,
+         (db.address|db.affiliation|db.email|db.uri|db.orgdiv|db.mediaobject)*
+      }
+      
+db.poetry =
+      element poetry {
+        db.poetry.info,
+        (db.mediaobject|db.linegroup|db.line)+
+      }
+      
+ db.dialogue =
+      element dialogue {
+      db.dialogue.info,
+      (db.mediaobject | db.linegroup | db.line)+
+      }
+      
+  db.dialogue.info =
+     db._info.title.only
+ db.poetry.info =
+     db._info.title.only
+     
+ db.linegroup =
+   db.speaker?,(db.line)+
+   
+ db.speaker = 
+       element speaker {
+       text |
+       db.person
+       }
+       
+ db.line =
+       element line {
+       db.all.inlines
+       }
\ No newline at end of file