1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
<?xml version='1.0'?>
<!--
plplotdoc-html.xsl.in: XSL customization for the HTML PLplot docs
Copyright (C) 2013-2017 Alan W. Irwin
Redistribution and use in source (XML DocBook) and "compiled" forms
(HTML, PDF, PostScript, DVI, TeXinfo and so forth) with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code (XML DocBook) must retain the
above copyright notice, this list of conditions and the following
disclaimer as the first lines of this file unmodified.
2. Redistributions in compiled form (transformed to other DTDs,
converted to HTML, PDF, PostScript, and other formats) must
reproduce the above copyright notice, this list of conditions and
the following disclaimer in the documentation and/or other
materials provided with the distribution.
Important: THIS DOCUMENTATION IS PROVIDED BY THE PLPLOT PROJECT "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PLPLOT PROJECT BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<!--
These ideas for customizing the PLplot html documentation are adapted
from
http://www.sagehill.net/docbookxsl/CustomMethods.html#CustomizationLayer
http://www.sagehill.net/docbookxsl/SettingParams.html
http://www.sagehill.net/docbookxsl/Chunking.html#ChunkFilenames
http://www.sagehill.net/docbookxsl/UsingCSS.html
http://www.sagehill.net/docbookxsl/Parameters.html
http://docbook.sourceforge.net/release/xsl/current/doc/html/
....
-->
<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/current/html/chunk.xsl"/>
<xsl:param name="chunk.quietly" select="1"/>
<xsl:param name="chunk.first.sections" select="1"/>
<xsl:param name="use.id.as.filename" select="1"/>
<xsl:param name="html.stylesheet" select="'stylesheet.css'"/>
<xsl:param name="funcsynopsis.style" select="'ansi'"/>
<xsl:param name="table.borders.with.css" select="1"></xsl:param>
<xsl:param name="table.cell.border.thickness">
<xsl:choose>
<xsl:when test="contains($stylesheet.result.type,'html')">10px</xsl:when>
<xsl:otherwise>5pt</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="table.cell.border.color">white</xsl:param>
<!-- For this case (anchor tag with a name attribute of
"over-under") we want the html result to be
<span class="overline">S</span>(<span class="underline">freq</span>)
which the configured stylesheet.css will overline and underline
as specified. However (AWI comment), don't know how to produce
that html yet from xslt so we do essentially nothing for this case
at the moment.
-->
<xsl:template match="anchor[@name = 'over-under']">
<fo:block xsl:use-attribute-sets="normal.para.spacing">
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
</xsl:stylesheet>
|