70 lines
2.8 KiB
XML
70 lines
2.8 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
||
|
<!--
|
||
|
a4.xsl
|
||
|
Parameters for A4 size paper.
|
||
|
|
||
|
Copyright (c) 2001 Sean Kelly
|
||
|
All rights reserved.
|
||
|
|
||
|
Redistribution and use in source and binary forms, with or without
|
||
|
modification, are permitted provided that the following conditions are
|
||
|
met:
|
||
|
|
||
|
1. Redistributions of source code must retain the above copyright
|
||
|
notice, this list of conditions and the following disclaimer.
|
||
|
2. Redistributions in binary form must reproduce the above copyright
|
||
|
notice, this list of conditions and the following disclaimer in the
|
||
|
documentation and/or other materials provided with the
|
||
|
distribution.
|
||
|
|
||
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
|
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
|
||
|
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||
|
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||
|
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||
|
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||
|
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
|
||
|
$Id: a4.xsl,v 1.1 2002/05/26 03:45:52 bruckie Exp $
|
||
|
-->
|
||
|
|
||
|
<xsl:stylesheet version="1.0"
|
||
|
xmlns:r="http://xmlresume.sourceforge.net/resume/0.0"
|
||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||
|
|
||
|
<!-- Measurements for A4-sized paper. -->
|
||
|
<!--
|
||
|
Ghostscript references http://www.twics.com/~eds/paper/index.html
|
||
|
as a source of info on paper sizes. ISO A size papers are
|
||
|
intended for general printing. The minimum margin for any ISO
|
||
|
(metric) paper is 3mm (all sides).
|
||
|
GH: 2002/05/05
|
||
|
-->
|
||
|
|
||
|
<xsl:param name="page.height">297mm</xsl:param>
|
||
|
<xsl:param name="page.width">210mm</xsl:param>
|
||
|
<xsl:param name="margin.top">20mm</xsl:param>
|
||
|
<xsl:param name="margin.left">20mm</xsl:param>
|
||
|
<xsl:param name="margin.right">20mm</xsl:param>
|
||
|
<xsl:param name="margin.bottom">20mm</xsl:param>
|
||
|
<xsl:param name="body.indent">20mm</xsl:param>
|
||
|
<xsl:param name="heading.indent">0mm</xsl:param>
|
||
|
|
||
|
<!-- Margins for the header box. It would be nice to just specify a width
|
||
|
attribute for the header block, but neither FOP nor XEP use it. Instead, we
|
||
|
force the width using these two properties. To center the header box, they
|
||
|
should each be:
|
||
|
($page.width - $margin.left - $margin.right - [desired header width]) div 2
|
||
|
We can't do that using an XPath expression because the numbers have associated
|
||
|
units. Grrr. There has to be a better way to do this.
|
||
|
-->
|
||
|
<xsl:param name="header.margin-left">50mm</xsl:param>
|
||
|
<xsl:param name="header.margin-right" select="$header.margin-left"/>
|
||
|
|
||
|
</xsl:stylesheet>
|