diff options
author | Peter Carbonetto | 2017-07-18 12:56:21 -0500 |
---|---|---|
committer | Peter Carbonetto | 2017-07-18 12:56:21 -0500 |
commit | 66e2499abdeb663034721425ad6e8efb3340ad99 (patch) | |
tree | 488cd3c971985fcc66579539e2704bb2641aadc4 /shunit2-2.0.3/share | |
parent | 9c718e1730ffdc78a9154f227250799ab52f7dfa (diff) | |
download | pangemma-66e2499abdeb663034721425ad6e8efb3340ad99.tar.gz |
Added shunint2 v2.0.3 files.
Diffstat (limited to 'shunit2-2.0.3/share')
4 files changed, 132 insertions, 0 deletions
diff --git a/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/fo/tldp-print.xsl b/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/fo/tldp-print.xsl new file mode 100644 index 0000000..b7a7d43 --- /dev/null +++ b/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/fo/tldp-print.xsl @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<xsl:stylesheet version="1.0" +xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<xsl:import href="../../../docbook-xsl/current/fo/docbook.xsl"/> + +<!-- Number all sections in the style of 'CH.S1.S2 Section Title' where + CH is the chapter number, S1 is the section number and S2 is the + sub-section number. The lables are not limited to any particular + depth and can go as far as there are sections. --> +<xsl:param name="section.autolabel" select="1"></xsl:param> +<xsl:param name="section.label.includes.component.label" select="0"></xsl:param> + +<!-- Turn off the default 'full justify' and go with 'left justify' + instead. This avoids the large gaps that can sometimes appear + between words in fully-justified documents. --> +<xsl:param name="alignment">start</xsl:param> + +<!-- Shade Verbatim Sections such as programlisting and screen --> +<xsl:param name="shade.verbatim" select="1"/> + +<!-- Create bookmarks in .PDF files --> +<xsl:param name="fop.extensions" select="1"/> + +</xsl:stylesheet> diff --git a/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/html/tldp-common.xsl b/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/html/tldp-common.xsl new file mode 100644 index 0000000..f8cf7b1 --- /dev/null +++ b/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/html/tldp-common.xsl @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<xsl:stylesheet version="1.0" +xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<!-- This file contains parameters that are applicable to all of the + tldp-*.xsl files in the html directory. --> + +<!-- Create a link to a CSS stylesheet named 'style.css' in all html + output so that pages can be beautified. Browsers not supporting + CSS should safely ignore the link. --> +<xsl:param name="html.stylesheet.type">text/css</xsl:param> +<xsl:param name="html.stylesheet" select="'style.css'"></xsl:param> + +<!-- Number all sections in the style of 'CH.S1.S2 Section Title' where + CH is the chapter number, S1 is the section number and S2 is the + sub-section number. The lables are not limited to any particular + depth and can go as far as there are sections. --> +<xsl:param name="section.autolabel" select="1"></xsl:param> +<xsl:param name="section.label.includes.component.label" select="0"></xsl:param> + +</xsl:stylesheet> diff --git a/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/html/tldp-one-page.xsl b/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/html/tldp-one-page.xsl new file mode 100644 index 0000000..16994ad --- /dev/null +++ b/shunit2-2.0.3/share/docbook/tldp-xsl/21MAR2004/html/tldp-one-page.xsl @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<xsl:import href="../../../docbook-xsl/current/html/docbook.xsl"/> +<xsl:import href="tldp-common.xsl"/> +<xsl:output method="html" encoding="UTF-8" indent="no"/> + +<!-- This set of customizations is used to generate the entire XML + document on a single HTML page. --> + +</xsl:stylesheet> diff --git a/shunit2-2.0.3/share/resources/shelldoc.xslt b/shunit2-2.0.3/share/resources/shelldoc.xslt new file mode 100644 index 0000000..45d5f92 --- /dev/null +++ b/shunit2-2.0.3/share/resources/shelldoc.xslt @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- $Id$ --> +<!-- +example ways to process this xslt: +$ java -cp xalan-2.6.0.jar \ + org.apache.xalan.xslt.Process -xml -in log4sh.xml -xsl shelldoc.xslt + +$ xsltproc shelldoc.xslt log4sh.xml |xmllint -noblanks - +--> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:s="http://www.forestent.com/projects/shelldoc/xsl/2005.0"> + <xsl:output + method="xml" + version="1.0" + encoding="UTF-8" + indent="yes"/> + <xsl:strip-space elements="*" /> + + <xsl:variable name="newline"> +<xsl:text> +</xsl:text> + </xsl:variable> + + <xsl:key name="groups" match="s:function" use="@group" /> + + <xsl:template match="/"> + <chapter id="shelldoc" lang="en-US"><title>Function Reference</title> + <xsl:for-each select="//s:function[generate-id(.)=generate-id(key('groups', @group)[1])]"> + <xsl:sort select="@group" /> + + <section> + <xsl:attribute name="id">shelldoc-section-<xsl:value-of select="@group" /></xsl:attribute> + <title><xsl:value-of select="@group"/></title> + <table> + <xsl:attribute name="id">shelldoc-function-<xsl:value-of select="@group" /></xsl:attribute> + <title><xsl:value-of select="@group"/></title> + <tgroup cols="2"><tbody> + <xsl:for-each select="key('groups', @group)"> + <!--<xsl:sort select="entry/funcsynopsis/funcprototype/funcdef/function" />--> + <xsl:choose> + <xsl:when test="@modifier"> + <xsl:if test="@modifier != 'private'"> + <row valign="top"> + <xsl:copy-of select="entry" /> + <!--<xsl:apply-templates select="entry" />--> + </row> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <row valign="top"> + <xsl:copy-of select="entry" /> + <!--<xsl:apply-templates select="entry" />--> + </row> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + </tbody></tgroup> + </table> + </section> + </xsl:for-each> + </chapter> + </xsl:template> + + <xsl:template match="entry"> + <entry> + <xsl:copy-of select="*" /> + </entry> + </xsl:template> + +</xsl:stylesheet> |