From: Aaron Klingaman <alk@cs.princeton.edu> Date: Thu, 20 Jan 2005 22:47:55 +0000 (+0000) Subject: used to build pdf output for pdn X-Git-Tag: BOOTMANAGER_3_1_RELEASE~18 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2c02d23b234503e709b804cde1534dcf7cbad0b6;p=bootmanager.git used to build pdf output for pdn --- diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..2334f2a --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +rm -f *.fo *.pdf pdn-titlepage.xsl + +#xsltproc -output pdn-titlepage.xsl \ +# /usr/share/sgml/docbook/xsl-stylesheets/template/titlepage.xsl \ +# pdn-titlepage.xml + +xmlto -x pdn-pdf-style.xsl pdf boot-manager-pdn.xml diff --git a/pdn-pdf-style.xsl b/pdn-pdf-style.xsl new file mode 100644 index 0000000..faac3cd --- /dev/null +++ b/pdn-pdf-style.xsl @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + +<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/> + +<xsl:param name="section.autolabel" select="1"></xsl:param> + +<xsl:param name="table.frame.border.thickness" select="'0.5pt'"></xsl:param> +<xsl:param name="nominal.table.width" select="'6in'"></xsl:param> + +<xsl:param name="header.rule" select="0"></xsl:param> +<xsl:param name="footer.rule" select="0"></xsl:param> + + +<!-- remove table of contents --> +<xsl:param name="generate.toc"> +article nop +</xsl:param> + +<!-- remove revision history --> +<xsl:template match="revhistory" mode="titlepage.mode"> +</xsl:template> + +<!-- remove normal header --> +<xsl:template match="header.content"> +</xsl:template> + +</xsl:stylesheet>