Add a very simple version of cover.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114597 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse 2004-01-16 14:41:09 +00:00
parent 7d4a3b109b
commit 72a53d4fba
3 changed files with 31 additions and 7 deletions

View File

@ -0,0 +1,24 @@
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'>
<xsl:template name="fo-cover">
<fo:page-sequence master-reference="cover-page">
<fo:flow flow-name="xsl-region-body">
<fo:block xsl:use-attribute-sets="body.title"
text-align="end">
<xsl:value-of select="$coverProjectName"/> v.<xsl:value-of select="$coverVersion"/>
</fo:block>
<fo:block xsl:use-attribute-sets="body.h1"
text-align="end" space-before="24pt" space-after="36pt">
<xsl:value-of select="$coverProjectCompany"/>
</fo:block>
<fo:block xsl:use-attribute-sets="body.h1"
text-align="end">
<xsl:value-of select="$coverType"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</xsl:template>
</xsl:stylesheet>

View File

@ -25,11 +25,11 @@ xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'>
<fo:simple-page-master master-name="cover-page"
page-width="{$pageWidth}in"
page-height="{$pageHeight}in"
margin-top="0in"
margin-bottom="0in"
margin-left="0in"
margin-right="0in">
<fo:region-body margin-top="0in"/>
margin-top="0.2in"
margin-bottom="0.2in"
margin-left="0.4in"
margin-right="0.2in">
<fo:region-body margin-top="4.72in"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="cover-inside"

View File

@ -5,7 +5,7 @@
xmlns:svg="http://www.w3.org/TR/2001/REC-SVG-20010904" version='1.0'>
<xsl:include href="fo-layouts.xslt" />
<!--<xsl:include href="fo-cover.xslt" />-->
<xsl:include href="fo-cover.xslt" />
<xsl:include href="fo-toc.xslt" />
<xsl:include href="fo-body.xslt" />
<xsl:include href="fo-tables.xslt" />
@ -77,8 +77,8 @@
<xsl:template match="project/body">
<!-- Custom cover pages will be included in a future version -->
<!--
<xsl:call-template name="fo-cover" />
<!--
<xsl:call-template name="fo-cover-inside" />
-->
<xsl:call-template name="fo-toc" />