use.role.for.mediaobject.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <refentry xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="5.0" xml:id="use.role.for.mediaobject">
  7. <refmeta>
  8. <refentrytitle>use.role.for.mediaobject</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>use.role.for.mediaobject</refname>
  13. <refpurpose>Use <tag class="attribute">role</tag> attribute
  14. value for selecting which of several objects within a mediaobject to use.
  15. </refpurpose>
  16. </refnamediv>
  17. <refsynopsisdiv>
  18. <src:fragment xml:id="use.role.for.mediaobject.frag">
  19. <xsl:param name="use.role.for.mediaobject" select="1"/>
  20. </src:fragment>
  21. </refsynopsisdiv>
  22. <refsection><info><title>Description</title></info>
  23. <para>If non-zero, the <tag class="attribute">role</tag> attribute on
  24. <tag>imageobject</tag>s or other objects within a <tag>mediaobject</tag> container will be used to select which object will be
  25. used.
  26. </para>
  27. <para>
  28. The order of selection when then parameter is non-zero is:
  29. </para>
  30. <orderedlist>
  31. <listitem>
  32. <para>If the stylesheet parameter <parameter>preferred.mediaobject.role</parameter> has a value, then the object whose role equals that value is selected.</para>
  33. </listitem>
  34. <listitem>
  35. <para>Else if an object's role attribute has a value of
  36. <literal>html</literal> for HTML processing or
  37. <literal>fo</literal> for FO output, then the first
  38. of such objects is selected.
  39. </para>
  40. </listitem>
  41. <listitem>
  42. <para>Else the first suitable object is selected.</para>
  43. </listitem>
  44. </orderedlist>
  45. <para>
  46. If the value of
  47. <parameter>use.role.for.mediaobject</parameter>
  48. is zero, then role attributes are not considered
  49. and the first suitable object
  50. with or without a role value is used.
  51. </para>
  52. </refsection>
  53. </refentry>