[richfaces-svn-commits] JBoss Rich Faces SVN: r4983 - trunk/docs/xslt/en/src/main/xslt.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Sat Dec 22 09:38:18 EST 2007
Author: artdaw
Date: 2007-12-22 09:38:18 -0500 (Sat, 22 Dec 2007)
New Revision: 4983
Modified:
trunk/docs/xslt/en/src/main/xslt/fopdf.xsl
Log:
http://jira.jboss.com/jira/browse/RF-1770 - centered images inside the <figure>...</figure> element
Modified: trunk/docs/xslt/en/src/main/xslt/fopdf.xsl
===================================================================
--- trunk/docs/xslt/en/src/main/xslt/fopdf.xsl 2007-12-22 14:30:49 UTC (rev 4982)
+++ trunk/docs/xslt/en/src/main/xslt/fopdf.xsl 2007-12-22 14:38:18 UTC (rev 4983)
@@ -281,22 +281,29 @@
</xsl:attribute-set>
<!-- Only hairlines as frame and cell borders in tables -->
<xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
- <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
-
- <xsl:attribute-set name="table.table.properties">
- <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
+ <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
+
+ <xsl:attribute-set name="table.table.properties">
+ <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="table.properties">
- <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
- </xsl:attribute-set>
+ <xsl:attribute-set name="table.properties">
+ <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
+ </xsl:attribute-set>
-
- <!--###################################################
- Images
- ################################################### -->
-
- <xsl:param name="default.image.width" select="'175mm'"></xsl:param>
+
+ <!--###################################################
+ Images
+ ################################################### -->
+
+ <!--xsl:param name="default.image.width" select="'175mm'"></xsl:param-->
+
+ <xsl:attribute-set name="figure.properties"
+ use-attribute-sets="mediaobject.imageobject.properties"/>
+ <xsl:attribute-set name="mediaobject.imageobject.properties">
+ <xsl:attribute name="text-align">center</xsl:attribute>
+ </xsl:attribute-set>
+
<!--###################################################
Labels
################################################### -->
@@ -470,14 +477,14 @@
<xsl:attribute name="margin-right">0em</xsl:attribute>
</xsl:attribute-set>
<!-- Shade (background) programlistings -->
- <xsl:param name="shade.verbatim">1</xsl:param>
+ <xsl:param name="shade.verbatim">1</xsl:param>
<xsl:param name="verbatim.margin.left">0pt</xsl:param>
<xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="monospace.verbatim.properties">
- <xsl:attribute name="wrap-option">wrap</xsl:attribute>
+ <xsl:attribute-set name="monospace.verbatim.properties">
+ <xsl:attribute name="wrap-option">wrap</xsl:attribute>
</xsl:attribute-set>
<!--###################################################
@@ -552,7 +559,7 @@
Turn this crap off. If you have to work with the "status"
attribute, don't.
-->
- <xsl:param name="draft.mode" select="'no'"/>
-
+ <xsl:param name="draft.mode" select="'no'"/>
+
</xsl:stylesheet>
More information about the richfaces-svn-commits
mailing list