From 08b3b024b6a53c30f5839e5de996e030eb019951 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 22 Mar 2007 12:13:41 +0000 Subject: [PATCH] RFE #1588693: Add an acknowledgements element, peer to dedication, replacing ackno which had only been available at the end of article --- docbook/relaxng/docbook/src/hier.rnc | 58 ++++++++++++++++------------ 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/docbook/relaxng/docbook/src/hier.rnc b/docbook/relaxng/docbook/src/hier.rnc index 3060dc970..d5d111faa 100644 --- a/docbook/relaxng/docbook/src/hier.rnc +++ b/docbook/relaxng/docbook/src/hier.rnc @@ -60,6 +60,7 @@ db.divisions = db.part db.components = db.dedication + | db.acknowledgements | db.preface | db.chapter | db.appendix @@ -142,7 +143,7 @@ div { [ db:refname [ "dedication" ] - db:refpurpose [ "A wrapper for the dedication section of a book" ] + db:refpurpose [ "The dedication of a book or other component" ] ] div { @@ -169,6 +170,35 @@ div { # ====================================================================== +[ + db:refname [ "acknowledgements" ] + db:refpurpose [ "Acknowledgements of a book or other component" ] +] +div { + + db.acknowledgements.status.attribute = db.status.attribute + + db.acknowledgements.role.attribute = attribute role { text } + + db.acknowledgements.attlist = + db.acknowledgements.role.attribute? + & db.common.attributes + & db.common.linking.attributes + & db.label.attribute? + & db.acknowledgements.status.attribute? + + db.acknowledgements.info = db._info + + db.acknowledgements = + element acknowledgements { + db.acknowledgements.attlist, + db.acknowledgements.info, + db.all.blocks+ + } +} + +# ====================================================================== + [ db:refname [ "colophon" ] db:refpurpose [ "Text at the back of a book describing facts about its production" ] @@ -407,28 +437,6 @@ div { # ====================================================================== -[ - db:refname [ "ackno" ] - db:refpurpose [ "Acknowledgements in an Article" ] -] -div { - - db.ackno.role.attribute = attribute role { text } - - db.ackno.attlist = - db.ackno.role.attribute? - & db.common.attributes - & db.common.linking.attributes - - db.ackno = - element ackno { - db.ackno.attlist, - db.all.inlines* - } -} - -# ====================================================================== - db.article.components = db.toplevel.sections # ====================================================================== @@ -478,10 +486,10 @@ div { element article { db.article.attlist, db.article.info, - db.navigation.components*, + (db.navigation.components | db.appendix | db.acknowledgements | db.colophon)* ((db.all.blocks+, db.article.components?) | db.article.components), - (db.appendix | db.navigation.components | db.ackno | db.colophon)* + (db.navigation.components | db.appendix | db.acknowledgements | db.colophon)* } } -- 2.40.0