Author: sjur
Date: Fri Sep 5 02:46:27 2008
New Revision: 692400
URL: http://svn.apache.org/viewvc?rev=692400&view=rev
Log:
Added support for user-specification of the font family.
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-notice.ft
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-notice.ft
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-notice.ft?rev=692400&r1=692399&r2=692400&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-notice.ft
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/fo/content-notice.ft
Fri Sep 5 02:46:27 2008
@@ -34,6 +34,16 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
+ <xsl:param name="defaultVariables" select="'test.html'"/>
+ <xsl:param name="serif" select="$defaultVariables/*/[EMAIL
PROTECTED]'output.pdf.fontFamily.serif']/@value" />
+ <xsl:param name="noticeFontFamily">
+ <xsl:choose>
+ <xsl:when test="$defaultVariables/*/[EMAIL
PROTECTED]'output.pdf.fontFamily.noticeFontFamily']">
+ <xsl:value-of select="$defaultVariables/*/[EMAIL
PROTECTED]'output.pdf.fontFamily.noticeFontFamily']/@value"/>
+ </xsl:when>
+ <xsl:otherwise><xsl:value-of select="$serif"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:param>
<xsl:include href="lm://pdf.transform.helper.pageBreaks" />
<xsl:template match="/">
<forrest:content>
@@ -41,7 +51,7 @@
<xsl:if test="//div[class='notice']/*">
<fo:block
font-size="10pt"
- font-family="serif"
+ font-family="{$noticeFontFamily}"
text-align="left"
space-before="20pt"
width="7.5in"