revegen ramp up. here we go!
This commit is contained in:
75
legacy-resumes/resume-1/xsl/paper/letter.xsl
Normal file
75
legacy-resumes/resume-1/xsl/paper/letter.xsl
Normal file
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
letter.xsl
|
||||
Parameters for US-Letter size paper.
|
||||
|
||||
Copyright (c) 2001 Sean Kelly, Bruce Christensen
|
||||
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: letter.xsl,v 1.2 2002/11/03 22:35:07 brandondoyle 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 USLetter-sized paper. -->
|
||||
<!--
|
||||
Ghostscript references http://www.twics.com/~eds/paper/index.html
|
||||
as a source of info on paper sizes. The minimum margin for US
|
||||
Letter paper is 1/8" (all sides).
|
||||
GH: 2002/05/05
|
||||
-->
|
||||
|
||||
<!-- Default page size -->
|
||||
<xsl:param name="page.height">11in</xsl:param>
|
||||
<xsl:param name="page.width">8.5in</xsl:param>
|
||||
|
||||
<!-- Default page margins -->
|
||||
<xsl:param name="margin.top">0.75in</xsl:param>
|
||||
<xsl:param name="margin.left">0.6in</xsl:param>
|
||||
<xsl:param name="margin.right">0.6in</xsl:param>
|
||||
<xsl:param name="margin.bottom">0.6in</xsl:param>
|
||||
|
||||
<!-- Body text indent -->
|
||||
<xsl:param name="body.indent">.5in</xsl:param>
|
||||
|
||||
<!-- Heading text indent -->
|
||||
<xsl:param name="heading.indent">0in</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">1.65in</xsl:param>
|
||||
<xsl:param name="header.margin-right" select="$header.margin-left"/>
|
||||
|
||||
</xsl:stylesheet>
|
Reference in New Issue
Block a user