svn commit: r40728 - projects/xml-tools/share/xsl
Gabor Kovesdan
gabor at FreeBSD.org
Wed Jan 23 13:05:33 UTC 2013
Author: gabor
Date: Wed Jan 23 13:05:32 2013
New Revision: 40728
URL: http://svnweb.freebsd.org/changeset/doc/40728
Log:
- Add some basic customization to the XSL FO stylesheets
Modified:
projects/xml-tools/share/xsl/freebsd-fo.xsl
Modified: projects/xml-tools/share/xsl/freebsd-fo.xsl
==============================================================================
--- projects/xml-tools/share/xsl/freebsd-fo.xsl Wed Jan 23 12:44:33 2013 (r40727)
+++ projects/xml-tools/share/xsl/freebsd-fo.xsl Wed Jan 23 13:05:32 2013 (r40728)
@@ -3,8 +3,9 @@
<!-- $FreeBSD$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
version='1.0'
- xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
<!-- Pull in the base stylesheets -->
@@ -27,5 +28,60 @@
<!-- FO specific customisation goes here -->
+ <xsl:param name="use.extensions" select="1"/>
+ <xsl:param name="fop1.extensions" select="1"/>
+
+<!--
+ <xsl:param name="hyphenate.verbatim" select="1"/>
+-->
+ <xsl:param name="header.column.widths">1 5 1</xsl:param>
+
+
+<xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode"/>
+
+<xsl:attribute-set name="abstract.title.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 2.0736"></xsl:value-of>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="text-align">left</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="abstract.properties">
+ <xsl:attribute name="margin-left">0</xsl:attribute>
+ <xsl:attribute name="margin-right">0</xsl:attribute>
+ <xsl:attribute name="padding-left">0</xsl:attribute>
+ <xsl:attribute name="padding-right">0</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="toc.margin.properties">
+ <xsl:attribute name="margin-left">
+ <xsl:value-of select="'0'"/>
+ </xsl:attribute>
+ <xsl:attribute name="margin-right">
+ <xsl:value-of select="'0'"/>
+ </xsl:attribute>
+ <xsl:attribute name="padding-left">
+ <xsl:value-of select="'0'"/>
+ </xsl:attribute>
+ <xsl:attribute name="padding-right">
+ <xsl:value-of select="'0'"/>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<!--
+<xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode">
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="start" font-family="{$body.fontset}">
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
+ </fo:block>
+</xsl:template>
+-->
+
+<xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">
+<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}">
+<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
</xsl:stylesheet>
More information about the svn-doc-projects
mailing list