From ef8ddfa9500cc0c6376f748b0bb332cc743adf17 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 11 Nov 2004 16:51:22 +0000 Subject: [PATCH] Use the DTD compatibility annotations to set the default values for xlink:type attributes --- docbook/relaxng/src/pool.rnc | 3 ++- docbook/relaxng/src/xlink.rnc | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docbook/relaxng/src/pool.rnc b/docbook/relaxng/src/pool.rnc index 753096f8c..921e0bba1 100644 --- a/docbook/relaxng/src/pool.rnc +++ b/docbook/relaxng/src/pool.rnc @@ -60,6 +60,7 @@ namespace rng = "http://relaxng.org/ns/structure/1.0" namespace s = "http://www.ascc.net/xml/schematron" namespace db = "http://docbook.org/docbook-ng" namespace dbx = "http://sourceforge.net/projects/docbook/defguide/schema/extra-markup" +namespace dtd = "http://relaxng.org/ns/compatibility/annotations/1.0" namespace xlink = "http://www.w3.org/1999/xlink" default namespace = "http://docbook.org/docbook-ng" @@ -88,7 +89,7 @@ db.linkends.attribute = attribute linkends { xsd:IDREFS } db.href.attribute = attribute xlink:href { text } - & attribute xlink:type { "simple" }? + & [ dtd:defaultValue="simple" ] attribute xlink:type { "simple" }? & attribute xlink:role { xsd:anyURI }? & attribute xlink:arcrole { xsd:anyURI }? & attribute xlink:title { text }? diff --git a/docbook/relaxng/src/xlink.rnc b/docbook/relaxng/src/xlink.rnc index e3d139c62..370ff215a 100644 --- a/docbook/relaxng/src/xlink.rnc +++ b/docbook/relaxng/src/xlink.rnc @@ -15,6 +15,7 @@ namespace rng = "http://relaxng.org/ns/structure/1.0" namespace s = "http://www.ascc.net/xml/schematron" namespace db = "http://docbook.org/docbook-ng" namespace xlink = "http://www.w3.org/1999/xlink" +namespace dtd = "http://relaxng.org/ns/compatibility/annotations/1.0" default namespace = "http://docbook.org/docbook-ng" db.info.elements |= db.extendedlink @@ -32,7 +33,7 @@ div { db.extendedlink.attlist = db.extendedlink.role.attribute? & db.common.attributes - & attribute xlink:type { "extended" }? + & [ dtd:defaultValue="extended" ] attribute xlink:type { "extended" }? & attribute xlink:role { xsd:anyURI }? & attribute xlink:title { text }? @@ -56,7 +57,7 @@ div { db.locator.attlist = db.locator.role.attribute? & db.common.attributes - & attribute xlink:type { "locator" }? + & [ dtd:defaultValue="locator" ] attribute xlink:type { "locator" }? & attribute xlink:href { text } & attribute xlink:role { xsd:anyURI }? & attribute xlink:title { text }? @@ -82,7 +83,7 @@ div { db.arc.attlist = db.arc.role.attribute? & db.common.attributes - & attribute xlink:type { "arc" }? + & [ dtd:defaultValue="arc" ] attribute xlink:type { "arc" }? & attribute xlink:arcrole { xsd:anyURI }? & attribute xlink:title { text }? & attribute xlink:show { "new" | "replace" | "embed" | "other" }? -- 2.40.0