make.graphic.viewport.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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="make.graphic.viewport">
  7. <refmeta>
  8. <refentrytitle>make.graphic.viewport</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>make.graphic.viewport</refname>
  13. <refpurpose>Use tables in HTML to make viewports for graphics</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="make.graphic.viewport.frag">
  17. <xsl:param name="make.graphic.viewport" select="1"/>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>The HTML <tag>img</tag> element only supports the notion
  22. of content-area scaling; it doesn't support the distinction between a
  23. content-area and a viewport-area, so we have to make some compromises.</para>
  24. <para>If <parameter>make.graphic.viewport</parameter> is non-zero, a table
  25. will be used to frame the image. This creates an effective viewport-area.
  26. </para>
  27. <para>Tables and alignment don't work together, so this parameter is ignored
  28. if alignment is specified on an image.</para>
  29. </refsection>
  30. </refentry>