summaryrefslogtreecommitdiffstats
path: root/docs/html.xsl
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-07-13 14:28:18 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-07-13 14:28:18 +0000
commitf80b6b9f96a027d926c9ee3d31f0ca8eb05272bf (patch)
tree896020f44da01537e545ae636f6bca0ff0c1e7d8 /docs/html.xsl
parente42d69c953858ed0a4b93cd346aa01e733c8a6ff (diff)
downloadpygobject-f80b6b9f96a027d926c9ee3d31f0ca8eb05272bf.tar.gz
pygobject-f80b6b9f96a027d926c9ee3d31f0ca8eb05272bf.tar.xz
pygobject-f80b6b9f96a027d926c9ee3d31f0ca8eb05272bf.zip
Move xsl to a separate directory, install them and include a few more things in the tarball
Diffstat (limited to 'docs/html.xsl')
-rw-r--r--docs/html.xsl288
1 files changed, 0 insertions, 288 deletions
diff --git a/docs/html.xsl b/docs/html.xsl
deleted file mode 100644
index 350f183..0000000
--- a/docs/html.xsl
+++ /dev/null
@@ -1,288 +0,0 @@
-<?xml version='1.0'?> <!--*- mode: xml -*-->
-<!DOCTYPE xsl:stylesheet [
-<!ENTITY RE "&#10;">
-<!ENTITY nbsp "&#160;">
-]>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'>
-
-<xsl:param name="shade.verbatim" select="1"/>
-<xsl:param name="use.id.as.filename" select="1"/>
-<xsl:param name="chunk.fast" select="1"/>
-<xsl:param name="chunker.output.encoding" select="'utf-8'"/>
-
-<xsl:attribute-set name="shade.verbatim.style">
- <xsl:attribute name="border">0</xsl:attribute>
- <xsl:attribute name="bgcolor">#E0E0E0</xsl:attribute>
- <xsl:attribute name="width">100%</xsl:attribute>
-</xsl:attribute-set>
-
-<xsl:param name="linenumbering.extension" select="1"/>
-<xsl:param name="variablelist.as.table" select="1"/>
-
-<xsl:template match="blockquote">
- <div class="{local-name(.)}">
- <xsl:if test="@lang or @xml:lang">
- <xsl:call-template name="language.attribute"/>
- </xsl:if>
- <xsl:call-template name="anchor"/>
-
- <xsl:choose>
- <xsl:when test="attribution">
- <table border="0" width="100%"
- cellspacing="0" cellpadding="0" class="blockquote"
- summary="Block quote">
- <tr>
- <td width="10%" valign="top">&#160;</td>
- <td width="80%" valign="top">
- <xsl:apply-templates select="child::*[local-name(.)!='attribution']"/>
- </td>
- <td width="10%" valign="top">&#160;</td>
- </tr>
- <tr>
- <td colspan="2" align="right" valign="top">
- <xsl:text>--</xsl:text>
- <xsl:apply-templates select="attribution"/>
- </td>
- <td width="10%" valign="top">&#160;</td>
- </tr>
- </table>
- </xsl:when>
- <xsl:when test="@role = 'properties' or @role = 'prototypes'">
- <xsl:choose>
- <xsl:when test="$shade.verbatim != 0">
- <table width="100%" xsl:use-attribute-sets="shade.verbatim.style">
- <tr>
- <td valign="top">
- <xsl:apply-templates select="child::*[local-name(.)!='attribution']"/>
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table width="100%" border="0">
- <tr>
- <td valign="top">
- <xsl:apply-templates select="child::*[local-name(.)!='attribution']"/>
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <blockquote class="{local-name(.)}">
- <xsl:apply-templates/>
- </blockquote>
- </xsl:otherwise>
- </xsl:choose>
- </div>
-</xsl:template>
-
- <!-- support for Python language for synopsises -->
- <xsl:template match="classsynopsis
- |fieldsynopsis
- |methodsynopsis
- |constructorsynopsis
- |destructorsynopsis">
- <xsl:param name="language">
- <xsl:choose>
- <xsl:when test="@language">
- <xsl:value-of select="@language"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$default-classsynopsis-language"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:choose>
- <xsl:when test="$language='python'">
- <xsl:apply-templates select="." mode="python"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-imports/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="classsynopsis" mode="python">
- <table bgcolor="#D0E0F0" width="100%">
- <tr><td>
- <pre class="{name(.)}">
- <xsl:text>class </xsl:text>
- <xsl:apply-templates select="ooclass[1]" mode="python"/>
- <xsl:if test="ooclass[position() &gt; 1]">
- <xsl:text>(</xsl:text>
- <xsl:apply-templates select="ooclass[position() &gt; 1]" mode="python"/> <xsl:text>)</xsl:text>
- </xsl:if>
- <xsl:text>:&RE;</xsl:text>
-
- <xsl:apply-templates select="constructorsynopsis
- |destructorsynopsis
- |fieldsynopsis
- |methodsynopsis
- |classsynopsisinfo" mode="python"/>
- </pre></td></tr></table>
- </xsl:template>
-
- <xsl:template match="classsynopsisinfo" mode="python">
- <xsl:apply-templates mode="python"/>
- </xsl:template>
-
- <xsl:template match="ooclass|oointerface|ooexception" mode="python">
- <xsl:if test="position() &gt; 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- </span>
- </xsl:template>
-
- <xsl:template match="modifier" mode="python">
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- <xsl:text>&nbsp;</xsl:text>
- </span>
- </xsl:template>
-
- <xsl:template match="classname" mode="python">
- <xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- </span>
- </xsl:template>
-
- <xsl:template match="interfacename" mode="python">
- <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- </span>
- </xsl:template>
-
- <xsl:template match="exceptionname" mode="python">
- <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- </span>
- </xsl:template>
-
- <xsl:template match="fieldsynopsis" mode="python">
- <code class="{name(.)}">
- <xsl:text>&nbsp;&nbsp;&nbsp;&nbsp;</xsl:text>
- <xsl:apply-templates mode="python"/>
- </code>
- <xsl:call-template name="synop-break"/>
- </xsl:template>
-
- <xsl:template match="type" mode="python">
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- <xsl:text>&nbsp;</xsl:text>
- </span>
- </xsl:template>
-
- <xsl:template match="varname" mode="python">
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- <xsl:text>&nbsp;</xsl:text>
- </span>
- </xsl:template>
-
- <xsl:template match="initializer" mode="python">
- <span class="{name(.)}">
- <xsl:text>=</xsl:text>
- <xsl:apply-templates mode="python"/>
- </span>
- </xsl:template>
-
- <xsl:template match="void" mode="python">
- <span class="{name(.)}">
- <xsl:text>void&nbsp;</xsl:text>
- </span>
- </xsl:template>
-
- <xsl:template match="methodname" mode="python">
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- </span>
- </xsl:template>
-
- <xsl:template match="methodparam" mode="python">
- <xsl:if test="position() &gt; 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- </span>
- </xsl:template>
-
- <xsl:template mode="python"
- match="destructorsynopsis|methodsynopsis">
-
- <code class="{name(.)}">
- <xsl:text> def </xsl:text>
- <xsl:apply-templates select="methodname" mode="python"/>
- <xsl:text>(</xsl:text>
- <xsl:apply-templates select="methodparam" mode="python"/>
- <xsl:text>)</xsl:text>
- </code>
- <xsl:call-template name="synop-break"/>
- </xsl:template>
-
- <xsl:template mode="python"
- match="constructorsynopsis">
-
- <code class="{name(.)}">
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="methodname" mode="python"/>
- <xsl:text>(</xsl:text>
- <xsl:apply-templates select="methodparam" mode="python"/>
- <xsl:text>)</xsl:text>
- </code>
- <xsl:call-template name="synop-break"/>
- </xsl:template>
-
-<!-- this was the original parameter python mode styling
- <xsl:template match="parameter" mode="python">
- <span class="{name(.)}">
- <xsl:apply-templates mode="python"/>
- </span>
- </xsl:template>
--->
-
- <!-- hack -->
- <xsl:template match="link" mode="python">
- <xsl:apply-templates select="."/>
- </xsl:template>
-
- <xsl:template match="parameter" mode="python">
- <span class="{name(.)}">
- <xsl:choose>
- <xsl:when test="@role = 'keyword'">
- <xsl:call-template name="inline.boldmonoseq"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="inline.italicmonoseq"/>
- </xsl:otherwise>
- </xsl:choose>
- </span>
-</xsl:template>
-
-<xsl:template match="variablelist">
- <table border="0" width="100%" bgcolor="#FFECCE">
- <col align="left" valign="top" width="0*">
- </col>
- <tbody>
- <xsl:apply-templates select="varlistentry" mode="varlist-table"/>
- </tbody>
- </table>
-</xsl:template>
-
-</xsl:stylesheet>