From: Norman Walsh Date: Thu, 27 Oct 2005 14:09:02 +0000 (+0000) Subject: Make dir a common attribute X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44b77eb990170aed68eb69f136268b4745c4fece;p=docbook-dsssl Make dir a common attribute --- diff --git a/docbook/relaxng/docbook/src/htmltbl.rnc b/docbook/relaxng/docbook/src/htmltbl.rnc index ad5075393..8c12afe85 100644 --- a/docbook/relaxng/docbook/src/htmltbl.rnc +++ b/docbook/relaxng/docbook/src/htmltbl.rnc @@ -41,9 +41,9 @@ db.html.coreattrs = & attribute style { text }? & attribute title { text }? +# dir isn't listed here because it's already a common attribute db.html.i18n = attribute lang { text }? - & attribute dir { "ltr" | "rtl" }? db.html.events = attribute onclick { text }? diff --git a/docbook/relaxng/docbook/src/pool.rnc b/docbook/relaxng/docbook/src/pool.rnc index d49ad6110..e6d040cf4 100644 --- a/docbook/relaxng/docbook/src/pool.rnc +++ b/docbook/relaxng/docbook/src/pool.rnc @@ -260,6 +260,22 @@ db.revisionflag.attribute = ] attribute revisionflag { db.revisionflag.enumeration } +db.dir.enumeration = + ## Left-to-right text + "ltr" + | ## Right-to-left text + "rtl" + | ## Left-to-right override + "lro" + | ## Right-to-left override + "rlo" + +db.dir.attribute = + [ + db:refpurpose [ "Identifies the direction of text in an element" ] + ] + attribute dir { db.dir.enumeration } + db.common.attributes = db.xml.id.attribute? & db.version.attribute? @@ -268,6 +284,7 @@ db.common.attributes = & db.remap.attribute? & db.xreflabel.attribute? & db.revisionflag.attribute? + & db.dir.attribute? & db.effectivity.attributes db.common.idreq.attributes = @@ -278,6 +295,7 @@ db.common.idreq.attributes = & db.remap.attribute? & db.xreflabel.attribute? & db.revisionflag.attribute? + & db.dir.attribute? & db.effectivity.attributes db.common.linking.attributes =