preferred.mediaobject.role.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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="preferred.mediaobject.role">
  7. <refmeta>
  8. <refentrytitle>preferred.mediaobject.role</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>preferred.mediaobject.role</refname>
  13. <refpurpose>Select which mediaobject to use based on
  14. this value of an object's <tag class="attribute">role</tag> attribute.
  15. </refpurpose>
  16. </refnamediv>
  17. <refsynopsisdiv>
  18. <src:fragment xml:id="preferred.mediaobject.role.frag">
  19. <xsl:param name="preferred.mediaobject.role"/>
  20. </src:fragment>
  21. </refsynopsisdiv>
  22. <refsection><info><title>Description</title></info>
  23. <para>A mediaobject may contain several objects such as imageobjects.
  24. If the parameter <parameter>use.role.for.mediaobject</parameter> is
  25. non-zero, then the <literal>role</literal> attribute on
  26. <tag>imageobject</tag>s and other objects within a
  27. <tag>mediaobject</tag> container will be used to select which object
  28. will be used. If one of the objects has a role value that matches the
  29. <parameter>preferred.mediaobject.role</parameter> parameter, then it
  30. has first priority for selection. If more than one has such a role
  31. value, the first one is used.
  32. </para>
  33. <para>
  34. See the <parameter>use.role.for.mediaobject</parameter> parameter
  35. for the sequence of selection.</para>
  36. </refsection>
  37. </refentry>