summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xorg-fo.xsl45
-rw-r--r--xorg-xhtml.xsl30
2 files changed, 72 insertions, 3 deletions
diff --git a/xorg-fo.xsl b/xorg-fo.xsl
index d57f7ac..22db24d 100644
--- a/xorg-fo.xsl
+++ b/xorg-fo.xsl
@@ -7,7 +7,8 @@
http://docbook.sourceforge.net/release/xsl/current/doc/fo/
-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
+xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
@@ -17,7 +18,7 @@
<xsl:param name="function.parens" select="1"/>
<!-- ANSI-style function synopses are generated for a funcsynopsis element -->
- <xsl:param name="funcsynopsis.style" select="ansi"/>
+ <xsl:param name="funcsynopsis.style">kr</xsl:param>
<!-- Linking HTML/FO Parameters -->
@@ -64,6 +65,7 @@
This feature is only available as of docbook-xsl-1.76.1.
When set to zero, the link will point to the document -->
<xsl:param name="insert.olink.pdf.frag" select="0"></xsl:param>
+ <xsl:param name="funcsynopsis-style" select="kr"></xsl:param>
<!-- Font Families FO Parameters -->
@@ -81,7 +83,44 @@
To set fop font paths to find them after installing, see
http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics
-->
- <xsl:param name="body.font.family">DejaVu Serif</xsl:param>
+ <!-- <xsl:param name="body.font.family">DejaVu Serif</xsl:param> -->
+ <!-- <xsl:param name="body.font.family">Times New Roman</xsl:param>-->
+ <xsl:param name="body.font.family">Times Roman, Times-Bold, Times-Italic, Times-Roman</xsl:param>
+ <xsl:param name="symbol.font.family">serif</xsl:param>
+<!--
<xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL ShanHeiSun Uni,GNU Unifont</xsl:param>
+-->
+<xsl:param name="body.font.size">10.5pt</xsl:param>
+<xsl:param name="body.start.indent">0pt</xsl:param>
+<xsl:param name="alignment">left</xsl:param>
+
+<xsl:param name="chapter.autolabel">1</xsl:param>
+<xsl:param name="section.autolabel">1</xsl:param>
+<xsl:param name="section.label.includes.component.label">1</xsl:param>
+
+
+<xsl:attribute-set name="sidebar.properties"
+ use-attribute-sets="formal.object.properties">
+ <xsl:attribute name="border-style">none</xsl:attribute>
+ <xsl:attribute name="background-color">#FFFFFF</xsl:attribute>
+ <xsl:attribute name="margin-left">30pt</xsl:attribute>
+
+
+ <xsl:attribute name="margin-top">0pt</xsl:attribute>
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0pt</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0pt</xsl:attribute>
+
+
+</xsl:attribute-set>
+
+<!-- Styling for refentry in PDF output -->
+<xsl:template match="refentry">
+ <fo:block background-color="#F8F8F8" margin-left="2em" margin-right="2em">
+ <xsl:apply-imports/>
+ </fo:block>
+</xsl:template>
+
+
</xsl:stylesheet>
diff --git a/xorg-xhtml.xsl b/xorg-xhtml.xsl
index d9b7b3e..f9b6362 100644
--- a/xorg-xhtml.xsl
+++ b/xorg-xhtml.xsl
@@ -56,5 +56,35 @@
<!-- Lists HTML Parameters-->
<xsl:param name="variablelist.as.table" select="1"/>
+<!-- -->
+
+<xsl:param name="body.font.size">10.5pt</xsl:param>
+<xsl:param name="body.start.indent">0pt</xsl:param>
+<xsl:param name="alignment">left</xsl:param>
+
+<xsl:param name="chapter.autolabel">1</xsl:param>
+<xsl:param name="section.autolabel">1</xsl:param>
+<xsl:param name="section.label.includes.component.label">1</xsl:param>
+
+
+<xsl:attribute-set name="sidebar.properties"
+ use-attribute-sets="formal.object.properties">
+ <xsl:attribute name="border-style">none</xsl:attribute>
+ <xsl:attribute name="background-color">#FFFFFF</xsl:attribute>
+ <xsl:attribute name="margin-left">30pt</xsl:attribute>
+
+
+ <xsl:attribute name="margin-top">0pt</xsl:attribute>
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0pt</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0pt</xsl:attribute>
+
+
+</xsl:attribute-set>
+
+<xsl:template match="funcsynopsis[@class = 'FUNCCLASS']" mode="class.value">
+ <xsl:value-of select="'FUNCCLASS'"/>
+</xsl:template>
+
</xsl:stylesheet>