Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 0577d24a2237617ff09bd0e03e449a74 > files > 558

docbook-style-xsl-doc-1.60.1-2mdk.noarch.rpm

<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>use.role.for.mediaobject</title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="home" href="index.html" title="HTML Parameter Reference"><link rel="up" href="rn17.html" title="Graphics"><link rel="previous" href="preferred.mediaobject.role.html" title="preferred.mediaobject.role"><link rel="next" href="ignore.image.scaling.html" title="ignore.image.scaling"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">use.role.for.mediaobject</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="preferred.mediaobject.role.html">Prev</a>&nbsp;</td><th width="60%" align="center">Graphics</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ignore.image.scaling.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="use.role.for.mediaobject"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p>use.role.for.mediaobject &#8212; Use <tt class="sgmltag-attribute">role</tt> attribute 
value for selecting which of several objects within a mediaobject to use.
</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a name="use.role.for.mediaobject.frag"></a><table border="1" width="100%"><tr><td><p><b>&sect;148</b>: <a href="#top">&sect;224</a></p></td></tr><tr><td><pre class="src:fragment">&nbsp;&nbsp;1| &lt;xsl:param name="use.role.for.mediaobject"
&nbsp;&nbsp;2|            select="1"/&gt;</pre></td></tr></table></div><div class="refsect1" lang="en"><h2>Description</h2><p>If non-zero, the <tt class="sgmltag-attribute">role</tt> attribute on
<a href="http://docbook.org/tdg/en/html/imageobject.html"><tt class="sgmltag-element">imageobject</tt></a>s or other objects within a <a href="http://docbook.org/tdg/en/html/mediaobject.html"><tt class="sgmltag-element">mediaobject</tt></a> container will be used to select which object will be
used.
</p><p>
The order of selection when then parameter is non-zero is:
</p><div class="orderedlist"><ol type="1"><li><p>If the stylesheet parameter <a href="preferred.mediaojbect.role.html"><i class="parameter"><tt>preferred.mediaojbect.role</tt></i></a> has a value, then the object whose role equals that value is selected.</p></li><li><p>Else if an object's role attribute has a value of
<tt class="literal">html</tt> for HTML processing or
<tt class="literal">fo</tt> for FO output, then the first
of such objects is selected.
</p></li><li><p>Else the first suitable object is selected.</p></li></ol></div><p>
If the value of 
<a href="use.role.for.mediaobject.html"><i class="parameter"><tt>use.role.for.mediaobject</tt></i></a>
is zero, then role attributes are not considered
and the first suitable object
with or without a role value is used.
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="preferred.mediaobject.role.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="rn17.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="ignore.image.scaling.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">preferred.mediaobject.role&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;ignore.image.scaling</td></tr></table></div></body></html>