used to build pdf output for pdn
authorAaron Klingaman <alk@cs.princeton.edu>
Thu, 20 Jan 2005 22:47:55 +0000 (22:47 +0000)
committerAaron Klingaman <alk@cs.princeton.edu>
Thu, 20 Jan 2005 22:47:55 +0000 (22:47 +0000)
build.sh [new file with mode: 0755]
pdn-pdf-style.xsl [new file with mode: 0644]

diff --git a/build.sh b/build.sh
new file mode 100755 (executable)
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 (file)
index 0000000..faac3cd
--- /dev/null
@@ -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>