From 5f724712fe01f983de90899661132642a6b55c49 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Wed, 7 Jun 2006 11:53:53 +0000 Subject: [PATCH] Added annotations for db.imagedata.mathml and db.imagedata.svg --- docbook/relaxng/docbook/src/svg.rnc | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/docbook/relaxng/docbook/src/svg.rnc b/docbook/relaxng/docbook/src/svg.rnc index 850aeffbd..d07e2497c 100644 --- a/docbook/relaxng/docbook/src/svg.rnc +++ b/docbook/relaxng/docbook/src/svg.rnc @@ -36,11 +36,16 @@ default namespace = "http://docbook.org/ns/docbook" db.imageobject.content |= db.imagedata.svg -# Allow imagedata to contain SVG +# ============================================================ -db.imagedata.svg.role.attribute = attribute role { text } +[ + db:refname [ "imagedata" ] + db:refpurpose [ "An SVG drawing in a media object" ] +] +div { + db.imagedata.svg.role.attribute = attribute role { text } -db.imagedata.svg.attlist = + db.imagedata.svg.attlist = db.imagedata.svg.role.attribute? & db.common.attributes & attribute format { "svg" }? @@ -53,14 +58,17 @@ db.imagedata.svg.attlist = & db.imagedata.depth.attribute? & db.imagedata.contentdepth.attribute? -db.imagedata.svg.info = db._info.title.forbidden + db.imagedata.svg.info = db._info.title.forbidden + + db.imagedata.svg = + element imagedata { + db.imagedata.attlist, + db.imagedata.info, + db._any.svg+ + } +} -db.imagedata.svg = - element imagedata { - db.imagedata.svg.attlist, - db.imagedata.svg.info, - db._any.svg+ - } +# ============================================================ [ db:refname [ "svg:*" ] -- 2.40.0