From: Bob Stayton Date: Fri, 6 Dec 2002 23:31:16 +0000 (+0000) Subject: Parameters to support selecting which imageobject in a X-Git-Tag: release/1.79.1~6^2~5083 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3eb944860db458ab28248cbd51864be14dca91f;p=docbook-dsssl Parameters to support selecting which imageobject in a mediaobject to use. --- diff --git a/xsl/params/preferred.mediaobject.role.xml b/xsl/params/preferred.mediaobject.role.xml new file mode 100644 index 000000000..3e501574d --- /dev/null +++ b/xsl/params/preferred.mediaobject.role.xml @@ -0,0 +1,33 @@ + + +preferred.mediaobject.role + + +preferred.mediaobject.role +Select which mediaobject to use based on +this value of an object's role attribute. + + + + + + + + + +Description + +A mediaobject may contain several objects such as imageobjects. +If the parameter use.role.for.mediaobject +is non-zero, then the role attribute on +imageobjects and other objects within a mediaobject container will be used to select which object will be +used. If one of the objects has a role value that matches the +preferred.mediaobject.role parameter, then it has first +priority for selection. If more than one has such a +role value, the first one is used. + + +See the use.role.for.mediaobject parameter +for the sequence of selection. + + diff --git a/xsl/params/use.role.for.mediaobject.xml b/xsl/params/use.role.for.mediaobject.xml new file mode 100644 index 000000000..af1b66111 --- /dev/null +++ b/xsl/params/use.role.for.mediaobject.xml @@ -0,0 +1,51 @@ + + +use.role.for.mediaobject +boolean + + +use.role.for.mediaobject +Use role attribute +value for selecting which of several objects within a mediaobject to use. + + + + + + + + + +Description + +If non-zero, the role attribute on +imageobjects or other objects within a mediaobject container will be used to select which object will be +used. + + +The order of selection when then parameter is non-zero is: + + + + If the stylesheet parameter preferred.mediaojbect.role has a value, then the object whose role equals that value is selected. + + +Else if an object's role attribute has a value of +html for HTML processing or +fo for FO output, then the first +of such objects is selected. + + + +Else the first suitable object is selected. + + + +If the value of +use.role.for.mediaobject +is zero, then role attributes are not considered +and the first suitable object +with or without a role value is used. + + +