Sha256: dc450e296ed37d9c659b77b32d5f8c012636fe766d26294d2194b359e4de6059

Contents?: true

Size: 1.89 KB

Versions: 20

Compression:

Stored size: 1.89 KB

Contents

<refentry xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:xi="http://www.w3.org/2001/XInclude"
          xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          version="5.0" xml:id="use.role.for.mediaobject">
<refmeta>
<refentrytitle>use.role.for.mediaobject</refentrytitle>
<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
</refmeta>
<refnamediv>
<refname>use.role.for.mediaobject</refname>
<refpurpose>Use <tag class="attribute">role</tag> attribute 
value for selecting which of several objects within a mediaobject to use.
</refpurpose>
</refnamediv>

<refsynopsisdiv>
<src:fragment xml:id="use.role.for.mediaobject.frag">
<xsl:param name="use.role.for.mediaobject" select="1"/>
</src:fragment>
</refsynopsisdiv>

<refsection><info><title>Description</title></info>

<para>If non-zero, the <tag class="attribute">role</tag> attribute on
<tag>imageobject</tag>s or other objects within a <tag>mediaobject</tag> container will be used to select which object will be
used.
</para>
<para>
The order of selection when then parameter is non-zero is:
</para>
<orderedlist>
<listitem>
    <para>If the stylesheet parameter <parameter>preferred.mediaobject.role</parameter> has a value, then the object whose role equals that value is selected.</para>
</listitem>
<listitem>
<para>Else if an object's role attribute has a value of
<literal>html</literal> for HTML processing or
<literal>fo</literal> for FO output, then the first
of such objects is selected.
</para>
</listitem>
<listitem>
<para>Else the first suitable object is selected.</para>
</listitem>
</orderedlist>
<para>
If the value of 
<parameter>use.role.for.mediaobject</parameter>
is zero, then role attributes are not considered
and the first suitable object
with or without a role value is used.
</para>
</refsection>
</refentry>

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
git-scribe-qp-0.1.1 docbook-xsl/params/use.role.for.mediaobject.xml
couchbase-git-scribe-0.1.1.2 docbook-xsl/params/use.role.for.mediaobject.xml
couchbase-git-scribe-0.1.1.1 docbook-xsl/params/use.role.for.mediaobject.xml
booky-0.0.4 lib/stylesheets/params/use.role.for.mediaobject.xml
booky-0.0.3 lib/stylesheets/params/use.role.for.mediaobject.xml
booky-0.0.2 lib/stylesheets/params/use.role.for.mediaobject.xml
booky-0.0.1 lib/stylesheets/params/use.role.for.mediaobject.xml
git-scribe-0.1.1 docbook-xsl/params/use.role.for.mediaobject.xml
git-scribe-0.1.0 docbook-xsl/params/use.role.for.mediaobject.xml
bookshop-0.0.4 lib/bookshop/generators/bookshop/app/tools/xsl/1.76.1/params/use.role.for.mediaobject.xml
bookshop-0.0.3 lib/bookshop/generators/bookshop/app/tools/xsl/1.76.1/params/use.role.for.mediaobject.xml
git-scribe-0.0.9 docbook-xsl/params/use.role.for.mediaobject.xml
git-scribe-0.0.8 docbook-xsl/params/use.role.for.mediaobject.xml
git-scribe-0.0.7 docbook-xsl/params/use.role.for.mediaobject.xml
git-scribe-0.0.6 docbook-xsl/params/use.role.for.mediaobject.xml
git-scribe-0.0.5 docbook-xsl/params/use.role.for.mediaobject.xml
git-scribe-0.0.4 docbook-xsl/params/use.role.for.mediaobject.xml
bookshop-0.0.2.1 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/params/use.role.for.mediaobject.xml
bookshop-0.0.2 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/params/use.role.for.mediaobject.xml
bookshop-0.0.1 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/params/use.role.for.mediaobject.xml