]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for appendix instances containing src:fragref
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 17 Jul 2007 03:08:06 +0000 (03:08 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 17 Jul 2007 03:08:06 +0000 (03:08 +0000)
descendants. This makes it possible to use this grammar to
validate *.xweb instances in the docbook-xsl source.

docbook/relaxng/params/refentry.rnc

index babe1a32cf186f29acda4536454b50dad8c5d8fc..1eb40dbd6a53a7e174a2093c1fa2cd73b694b958 100644 (file)
@@ -13,15 +13,34 @@ include "../docbook/docbookxi/docbookxi.rnc" {
          fragment+
       }
 
+  db.appendix =
+    element appendix {
+      db.appendix.attlist,
+      db.appendix.info,
+      db.para+,
+      fragment
+    }
+
    db._any =
       element * - (db:* | html:* | src:*) {
-         (db._any.attribute | text | db._any)*
+         (db._any.attribute | text | db._any | fragref)*
       }
 }
 
+fragref.attlist =
+attribute linkend { text }
+
+fragref = element src:fragref {
+  fragref.attlist
+}
+
+fragment.attlist =
+   attribute xml:id { xsd:ID }
+   & attribute mundane-result-prefixes { text }?
+
 fragment = element src:fragment {
-   attribute xml:id { xsd:ID },
-   db._any*
+  fragment.attlist,
+  db._any*
 }
 
 ## The following patterns are here just to enable autocompletition in some editors
@@ -47,4 +66,3 @@ db.refmiscinfo |=
      attribute otherclass { "list-type" },
      ( "open" | "closed" )
   }
-     
\ No newline at end of file