dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #13904
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 387: Putting some alternate code for admonitions which is commented out, but want to put it here other...
------------------------------------------------------------
revno: 387
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Mon 2011-09-12 19:57:27 +0200
message:
Putting some alternate code for admonitions which is commented out, but want to put it here otherwise will forget about it.
modified:
src/docbkx/en/resources/xsl/fop-cust.xsl
--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs
Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription
=== modified file 'src/docbkx/en/resources/xsl/fop-cust.xsl'
--- src/docbkx/en/resources/xsl/fop-cust.xsl 2011-09-12 15:09:55 +0000
+++ src/docbkx/en/resources/xsl/fop-cust.xsl 2011-09-12 17:57:27 +0000
@@ -682,10 +682,37 @@
<!-- Use nice graphics for admonitions -->
<xsl:param name="admon.graphics">1</xsl:param>
<xsl:param name="admon.graphics.path">resources/images/admon/</xsl:param>
-
- <xsl:template match="*" mode="admon.graphic.width">
+ <xsl:template match="*" mode="admon.graphic.width">
<xsl:text>14pt</xsl:text>
</xsl:template>
+ <!-- this is an alternate view of admonitions which maybe preferable
+ <xsl:template name="graphical.admonition">
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+
+ <fo:block space-before.minimum="0.8em"
+ space-before.optimum="1em"
+ space-before.maximum="1.2em"
+ start-indent="0.25in"
+ end-indent="0.25in"
+ border-top="0.5pt solid black"
+ border-bottom="0.5pt solid black"
+ padding-top="4pt"
+ padding-bottom="4pt"
+ id="{$id}">
+ <xsl:if test="$admon.textlabel != 0 or title">
+ <fo:block keep-with-next='always'
+ xsl:use-attribute-sets="admonition.title.properties">
+ <xsl:apply-templates select="." mode="object.title.markup"/>
+ </fo:block>
+ </xsl:if>
+
+ <fo:block xsl:use-attribute-sets="admonition.properties">
+ <xsl:apply-templates/>
+ </fo:block>
+ </fo:block>
+</xsl:template> -->
<!--###################################################
Misc
################################################### -->