Created
July 29, 2013 11:13
-
-
Save capncodewash/6103651 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<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="urn:docbkx:stylesheet"/> | |
<!-- ProgramListing/Screen has a background color --> | |
<xsl:param name="shade.verbatim">1</xsl:param> | |
<xsl:attribute-set name="shade.verbatim.style"> | |
<xsl:attribute name="background-color">#edf8fd</xsl:attribute> | |
</xsl:attribute-set> | |
<!-- Reduce size of program listing font and add a border --> | |
<xsl:attribute-set name="verbatim.properties"> | |
<xsl:attribute name="space-before.minimum">1em</xsl:attribute> | |
<xsl:attribute name="space-before.optimum">1em</xsl:attribute> | |
<xsl:attribute name="space-before.maximum">1em</xsl:attribute> | |
<xsl:attribute name="font-size">8pt</xsl:attribute> | |
<xsl:attribute name="border-width">1px</xsl:attribute> | |
<xsl:attribute name="border-style">dashed</xsl:attribute> | |
<xsl:attribute name="border-color">#9999cc</xsl:attribute> | |
<xsl:attribute name="padding-top">0.5em</xsl:attribute> | |
<xsl:attribute name="padding-left">0.5em</xsl:attribute> | |
<xsl:attribute name="padding-right">0.5em</xsl:attribute> | |
<xsl:attribute name="padding-bottom">0.5em</xsl:attribute> | |
<xsl:attribute name="margin-left">0.5em</xsl:attribute> | |
<xsl:attribute name="margin-right">0.5em</xsl:attribute> | |
</xsl:attribute-set> | |
<!-- Allow to wrap long lines for program listing --> | |
<!-- | |
<xsl:param name="hyphenate.verbatim" select="1"/> | |
--> | |
<xsl:param name="hyphenate.verbatim.characters">.</xsl:param> | |
<xsl:attribute-set name="monospace.verbatim.properties"> | |
<xsl:attribute name="wrap-option">wrap</xsl:attribute> | |
<!-- <xsl:attribute name="hyphenation-character">\</xsl:attribute> --> | |
</xsl:attribute-set> | |
<xsl:param name="ulink.hyphenate.chars">.</xsl:param> | |
<xsl:param name="ulink.hyphenate">­</xsl:param> | |
<xsl:template match="entry//text()"> | |
<xsl:call-template name="hyphenate-url"> | |
<xsl:with-param name="url" select="."/> | |
</xsl:call-template> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment