From: Bob Stayton Date: Tue, 17 Dec 2002 00:55:53 +0000 (+0000) Subject: Changed selection of mediaobject to be more consistent using X-Git-Tag: release/1.79.1~6^2~5066 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bf85bf98c680fe140aa8d1f845e877870ecaa82;p=docbook-dsssl Changed selection of mediaobject to be more consistent using a separate select.mediaobject.index template. Also added text-align to block containing external-graphic in fo output. --- diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index 0ef32eba4..87fe5f6ae 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -322,8 +322,7 @@ Defaults to the context node. -Selects an appropriate media object from a list +Selects and processes an appropriate media object from a list -This template examines a list of media objects (usually the +This template takes a list of media objects (usually the children of a mediaobject or inlinemediaobject) and processes the "right" object. +This template relies on a template named +"select.mediaobject.index" to determine which object +in the list is appropriate. + +If no acceptable object is located, nothing happens. + + + + +olist + +The node list of potential objects to examine. + + + + + + +Calls <xsl:apply-templates> on the selected object. + + + + + + + + + + + + + + + + + + + + + +Selects the position of the appropriate media object from a list + + +This template takes a list of media objects (usually the +children of a mediaobject or inlinemediaobject) and determines +the "right" object. It returns the position of that object +to be used by the calling template. + +If the parameter use.role.for.mediaobject +is nonzero, then it first checks for an object with +a role attribute of the appropriate value. It takes the first +of those. Otherwise, it takes the first acceptable object +through a recursive pass through the list. + This template relies on a template named "is.acceptable.mediaobject" to determine if a given object is an acceptable graphic. The semantics of media objects is that the first acceptable graphic should be used. -If no acceptable object is located, nothing happens. +If no acceptable object is located, no index is returned. @@ -788,68 +843,116 @@ of media objects is that the first acceptable graphic should be used. The node list of potential objects to examine. +count + +The position in the list currently being considered by the +recursive process. + + -Calls <xsl:apply-templates> on the selected object. +Returns the position in the original list of the selected object. - + 1 - - + + + + + + + + + + + + + + - - - - - 0 - - - - 1 - - - - 1 - - - + + + + + + + + + + + + + + + + + - - - - - + + + 0 + + + 0 + + + + 1 + + + + 1 + + - - - + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -1016,13 +1119,13 @@ the ID is not unique. - Error: no ID for constraint linkend: - - . + Error: no ID for constraint linkend: + + . @@ -1030,9 +1133,9 @@ the ID is not unique. - Warning: multiple "IDs" for constraint linkend: - - . + Warning: multiple "IDs" for constraint linkend: + + . @@ -1057,14 +1160,14 @@ pointed to by the link is one of the elements listed in - - Error: linkend ( - - ) points to " - - " not (one of): - - + + Error: linkend ( + + ) points to " + + " not (one of): + + diff --git a/xsl/fo/formal.xsl b/xsl/fo/formal.xsl index b1a589573..fc8a1ea63 100644 --- a/xsl/fo/formal.xsl +++ b/xsl/fo/formal.xsl @@ -39,6 +39,8 @@ + + @@ -93,11 +95,36 @@ + + + + + + + + + + + + + + + + + + + - - - + + + + + @@ -150,9 +177,46 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/graphics.xsl b/xsl/fo/graphics.xsl index 690cec1c5..134e627a9 100644 --- a/xsl/fo/graphics.xsl +++ b/xsl/fo/graphics.xsl @@ -308,40 +308,32 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/html/math.xsl b/xsl/html/math.xsl index 2a136a7d7..b8d30e994 100644 --- a/xsl/html/math.xsl +++ b/xsl/html/math.xsl @@ -226,57 +226,19 @@ - 1 - - - - - - - - 0 - - - - 0 - - - - 1 - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - + + + +