]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for title element in screenshot, now allowed in DocBook 5.
authorBob Stayton <bobs@sagehill.net>
Sun, 1 Jul 2012 23:35:36 +0000 (23:35 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 1 Jul 2012 23:35:36 +0000 (23:35 +0000)
gentext/locale/en.xml
xsl/fo/graphics.xsl
xsl/fo/xref.xsl

index a45f42760ded7027382fadf7546ddac7bc7d2aae..b72ad8fa5b8c65cdf186fb1f10d26e5d4e73409f 100644 (file)
 <template name="refsect3">%t</template>
 <template name="refsynopsisdiv">%t</template>
 <template name="refsynopsisdivinfo">%t</template>
+<template name="screenshot">%t</template>
 <template name="segmentedlist">%t</template>
 <template name="set">%t</template>
 <template name="setindex">%t</template>
 <template name="question"><Question/>&#160;%n</template>
 <template name="reference">%t</template>
 <template name="refsynopsisdiv">%t</template>
+<template name="screenshot">%t</template>
 <template name="segmentedlist">%t</template>
 <template name="set">%t</template>
 <template name="setindex">%t</template>
index 24041e8a055c535acb632ccd277fb5b9c41f3799..8d46c5c06b0985b77da75c15a321799dc92e0522 100644 (file)
 
 <xsl:template match="screenshot">
   <fo:block>
+    <xsl:call-template name="anchor"/>
     <xsl:apply-templates/>
   </fo:block>
 </xsl:template>
 
+<xsl:template match="screenshot/title">
+  <xsl:call-template name="formal.object.heading">
+    <xsl:with-param name="object" select=".."/>
+  </xsl:call-template>
+</xsl:template>
+
 <xsl:template match="screeninfo">
 </xsl:template>
 
     </xsl:when>
     <xsl:otherwise>
       <fo:block>
+        <xsl:call-template name="anchor"/>
         <xsl:if test="@align">
           <xsl:attribute name="text-align">
             <xsl:value-of select="@align"/>
index 62cd2f2848761feba85240db4acf02ca59e5fd9b..4406f6d58c8b38e86653cee07877a63e0a2046c6 100644 (file)
                      |constraintdef|formalpara|glossdiv|important|indexdiv
                      |itemizedlist|legalnotice|lot|msg|msgexplan|msgmain
                      |msgrel|msgset|msgsub|note|orderedlist|partintro
-                     |productionset|qandadiv|refsynopsisdiv|segmentedlist
+                     |productionset|qandadiv|refsynopsisdiv|screenshot|segmentedlist
                      |set|setindex|sidebar|tip|toc|variablelist|warning"
               mode="xref-to">
   <xsl:param name="referrer"/>