Added a toc.pagenum.attribute pattern. Added a refpurpose for the pagenum attribute.
authorNorman Walsh <ndw@nwalsh.com>
Thu, 2 Mar 2006 08:27:25 +0000 (08:27 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 2 Mar 2006 08:27:25 +0000 (08:27 +0000)
docbook/relaxng/docbook/src/toc.rnc

index 342ce666dc0aaa45b733f0c9d0f1fd26d32c02af..6feb0a8c9985d30e6b742844a15236195fb235c8 100644 (file)
@@ -35,6 +35,12 @@ default namespace = "http://docbook.org/ns/docbook"
 db.navigation.components |= db.toc
 db.toc.components |= db.toc
 
+db.toc.pagenum.attribute =
+   [
+      db:refpurpose [ "Indicates the page on which this element occurs in some version of the printed document" ]
+      ]
+   attribute pagenum { text }
+
 # ======================================================================
 
 [
@@ -70,7 +76,7 @@ div {
 div {
 
    db.tocdiv.role.attribute = attribute role { text }
-   db.tocdiv.pagenum.attribute = attribute pagenum { text }
+   db.tocdiv.pagenum.attribute = db.toc.pagenum.attribute
 
    db.tocdiv.attlist =
       db.tocdiv.role.attribute?
@@ -98,7 +104,7 @@ div {
 div {
 
    db.tocentry.role.attribute = attribute role { text }
-   db.tocentry.pagenum.attribute = attribute pagenum { text }
+   db.tocentry.pagenum.attribute = db.toc.pagenum.attribute
 
    db.tocentry.attlist =
       db.tocentry.role.attribute?