db.equation.content |= db._any.mml+
+# Allow imagedata to contain MathML
+
+db.imagedata.mathml.role.attribute = attribute role { text }
+
+db.imagedata.mathml.attlist =
+ db.imagedata.mathml.role.attribute?
+ & db.common.attributes
+ & attribute format { "mathml" }?
+ & db.imagedata.align.attribute?
+ & db.imagedata.valign.attribute?
+ & db.imagedata.width.attribute?
+ & db.imagedata.contentwidth.attribute?
+ & db.imagedata.scalefit.attribute?
+ & db.imagedata.scale.attribute?
+ & db.imagedata.depth.attribute?
+ & db.imagedata.contentdepth.attribute?
+
+db.imagedata.mathml.info = db._info.title.forbidden
+
+db.imagedata.mathml =
+ element imagedata {
+ db.imagedata.attlist,
+ db.imagedata.info,
+ db._any.mml+
+ }
+
+db.imageobject.content |= db.imagedata.mathml
+
[
db:refname [ "mml:*" ]
db:refpurpose [ "Any element from the MathML namespace" ]
namespace db = "http://docbook.org/ns/docbook"
default namespace = "http://docbook.org/ns/docbook"
-db.imageobject.content |= db._any.svg+
+db.imageobject.content |= db.imagedata.svg
+
+# Allow imagedata to contain SVG
+
+db.imagedata.svg.role.attribute = attribute role { text }
+
+db.imagedata.svg.attlist =
+ db.imagedata.svg.role.attribute?
+ & db.common.attributes
+ & attribute format { "svg" }?
+ & db.imagedata.align.attribute?
+ & db.imagedata.valign.attribute?
+ & db.imagedata.width.attribute?
+ & db.imagedata.contentwidth.attribute?
+ & db.imagedata.scalefit.attribute?
+ & db.imagedata.scale.attribute?
+ & db.imagedata.depth.attribute?
+ & db.imagedata.contentdepth.attribute?
+
+db.imagedata.svg.info = db._info.title.forbidden
+
+db.imagedata.svg =
+ element imagedata {
+ db.imagedata.attlist,
+ db.imagedata.info,
+ db._any.svg+
+ }
[
db:refname [ "svg:*" ]