component.title.properties.xml 1.8 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="component.title.properties">
  7. <refmeta>
  8. <refentrytitle>component.title.properties</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>component.title.properties</refname>
  13. <refpurpose>Properties for component titles</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="component.title.properties.frag">
  17. <xsl:attribute-set name="component.title.properties">
  18. <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
  19. <xsl:attribute name="space-before.optimum"><xsl:value-of select="concat($body.font.master, 'pt')"/></xsl:attribute>
  20. <xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master, 'pt * 0.8')"/></xsl:attribute>
  21. <xsl:attribute name="space-before.maximum"><xsl:value-of select="concat($body.font.master, 'pt * 1.2')"/></xsl:attribute>
  22. <xsl:attribute name="hyphenate">false</xsl:attribute>
  23. <xsl:attribute name="text-align">
  24. <xsl:choose>
  25. <xsl:when test="((parent::article | parent::articleinfo | parent::info/parent::article) and not(ancestor::book) and not(self::bibliography)) or (parent::slides | parent::slidesinfo)">center</xsl:when>
  26. <xsl:otherwise>start</xsl:otherwise>
  27. </xsl:choose>
  28. </xsl:attribute>
  29. <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
  30. </xsl:attribute-set>
  31. </src:fragment>
  32. </refsynopsisdiv>
  33. <refsection><info><title>Description</title></info>
  34. <para>The properties common to all component titles.</para>
  35. </refsection>
  36. </refentry>