Next in thread →
Next in month →
RE: [docbook-apps] Height and Width Tags in XHTML Transformations
>> There is a template mode for setting admonition graphic width (not for height, though). See: http://www.sagehill.net/docbookxsl/CustomAdmonitions.html << Extended the ../xhtml/admon.xsl template as follows; works perfectly: <xsl:template match="*" mode="admon.graphic.width"> <xsl:param name="node" select="."/> <xsl:text>25</xsl:text> </xsl:template> <xsl:template match="*" mode="admon.graphic.height"> <xsl:param name="node" select="."/> <xsl:text>25</xsl:text> </xsl:template> <xsl:template name="graphical.admonition"> … … <td rowspan="2" align="center" valign="top"> <xsl:attribute name="width"> <xsl:apply-templates select="." mode="admon.graphic.width"/> </xsl:attribute> <xsl:attribute name="height"> <xsl:apply-templates select="." mode="admon.graphic.height"/> </xsl:attribute> <img alt="[{$alt}]"> <xsl:attribute name="src"> <xsl:call-template name="admon.graphic"/> </xsl:attribute> </img> </td> … … </xsl:template> Can this code be rolled into the next snapshot or release? Will the same be an issue with nav graphics (not currently using nav graphics) and if so, will a similar solution suffice? Thanks again. Ray
Next in thread →
Next in month →