From 1df98a4fcca10fbfbdbc9e9e3fe4516d7b970ed0 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 17 Jul 2007 03:08:06 +0000 Subject: [PATCH] Add support for appendix instances containing src:fragref descendants. This makes it possible to use this grammar to validate *.xweb instances in the docbook-xsl source. --- docbook/relaxng/params/refentry.rnc | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/docbook/relaxng/params/refentry.rnc b/docbook/relaxng/params/refentry.rnc index babe1a32c..1eb40dbd6 100644 --- a/docbook/relaxng/params/refentry.rnc +++ b/docbook/relaxng/params/refentry.rnc @@ -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 -- 2.40.0