aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--chapter01/changelog.xml2
-rw-r--r--stylesheets/lfs-print.xsl3
-rw-r--r--stylesheets/lfs-profile.xsl9
4 files changed, 15 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6f61edeeb..295041553 100644
--- a/Makefile
+++ b/Makefile
@@ -34,8 +34,9 @@ pdf:
fop.sh lfs.fo $(PDF_OUTPUT)
print:
- xsltproc --xinclude --nonet --output lfs-print.fo \
- stylesheets/lfs-print.xsl index.xml
+ xsltproc --xinclude --nonet --stringparam profile.condition print --output lfs-print.xml \
+ stylesheets/lfs-profile.xsl index.xml
+ xsltproc --nonet --output lfs-print.fo stylesheets/lfs-print.xsl lfs-print.xml
sed -i -e "s/inherit/all/" lfs-print.fo
fop.sh lfs-print.fo $(PRINT_OUTPUT)
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index b5af4b9e7..0f47160df 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -3,7 +3,7 @@
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
-<sect1 id="ch-scatter-changelog">
+<sect1 id="ch-scatter-changelog" condition="no-print">
<title>Changelog</title>
<?dbhtml filename="changelog.html"?>
diff --git a/stylesheets/lfs-print.xsl b/stylesheets/lfs-print.xsl
index 524191b5d..c1f68dce8 100644
--- a/stylesheets/lfs-print.xsl
+++ b/stylesheets/lfs-print.xsl
@@ -36,7 +36,8 @@
<xsl:param name="toc.indent.width" select="18"></xsl:param>
<!-- Page number in Xref-->
- <xsl:param name="insert.xref.page.number">yes</xsl:param> <xsl:template match="*" mode="page.citation">
+ <xsl:param name="insert.xref.page.number">yes</xsl:param>
+ <xsl:template match="*" mode="page.citation">
<xsl:param name="id" select="'???'"/>
<fo:inline keep-together.within-line="always">
<xsl:text>[p</xsl:text>
diff --git a/stylesheets/lfs-profile.xsl b/stylesheets/lfs-profile.xsl
new file mode 100644
index 000000000..85ad9a7c7
--- /dev/null
+++ b/stylesheets/lfs-profile.xsl
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/profiling/profile.xsl"/>
+
+</xsl:stylesheet>