Update stylesheet.

This commit is contained in:
Michael Jumper 2012-11-29 19:36:13 -08:00
parent 2f75ff7018
commit 3e209e1983

View File

@ -2,17 +2,17 @@
<!-- Stylesheet for transforming Doxygen output to DocBook 5.0 --> <!-- Stylesheet for transforming Doxygen output to DocBook 5.0 -->
<xsl:stylesheet <xsl:stylesheet
xmlns="http://docbook.org/ns/docbook"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl" extension-element-prefixes="exsl"
version="1.0"> version="1.0">
<xsl:output method="xml" indent="yes" <xsl:output method="xml" indent="yes"/>
doctype-public="-//OASIS//DTD DocBook V5.0//EN"
doctype-system="http://docbook.org/xml/5.0/dtd/docbook.dtd"/>
<xsl:template match="/doxygen"> <xsl:template match="/doxygen">
<reference> <reference version="5.0" xml:lang="en">
<title>libguac</title>
<xsl:apply-templates select="//memberdef[@kind='function']"/> <xsl:apply-templates select="//memberdef[@kind='function']"/>
</reference> </reference>
</xsl:template> </xsl:template>
@ -21,7 +21,8 @@
<xsl:variable name="name" select="name"/> <xsl:variable name="name" select="name"/>
<refentry id="{$name}"> <!-- Previously had xml:id="{$name}" -->
<refentry>
<indexterm> <indexterm>
<primary><xsl:value-of select="name"/></primary> <primary><xsl:value-of select="name"/></primary>
@ -31,6 +32,13 @@
<refentrytitle><xsl:value-of select="name"/></refentrytitle> <refentrytitle><xsl:value-of select="name"/></refentrytitle>
</refmeta> </refmeta>
<refnamediv>
<refname><xsl:value-of select="name"/></refname>
<refpurpose>
<xsl:value-of select="briefdescription/para"/>
</refpurpose>
</refnamediv>
<refsynopsisdiv> <refsynopsisdiv>
<funcsynopsis> <funcsynopsis>
<funcprototype> <funcprototype>
@ -45,33 +53,31 @@
<paramdef> <paramdef>
<xsl:value-of select="type"/> <xsl:value-of select="type"/>
<xsl:if test="declname"> <xsl:if test="declname">
<xsl:text> </xsl:text>
<parameter> <parameter>
<xsl:value-of select="declname"/> <xsl:value-of select="declname"/>
</parameter> </parameter>
</xsl:if> </xsl:if>
</paramdef> </paramdef>
</xsl:for-each> </xsl:for-each>
<xsl:if test="not(param)">
<void/>
</xsl:if>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
</refsynopsisdiv> </refsynopsisdiv>
<refnamediv>
<refname><xsl:value-of select="name"/></refname>
<refpurpose>
<xsl:value-of select="briefdescription/para"/>
</refpurpose>
</refnamediv>
<refsection> <refsection>
<title>Description</title> <title>Description</title>
<para> <para>
<xsl:value-of select="briefdescription/para"/> <xsl:value-of select="briefdescription/para"/>
<xsl:for-each select="detaileddescription/para[not(parameterlist)]">
<xsl:value-of select="."/>
</xsl:for-each>
</para> </para>
<xsl:for-each select="detaileddescription/para[not(parameterlist|simplesect)]">
<para><xsl:value-of select="."/></para>
</xsl:for-each>
</refsection> </refsection>
<xsl:if test=".//parameterlist/parameteritem">
<refsection> <refsection>
<title>Parameters</title> <title>Parameters</title>
@ -91,8 +97,17 @@
</varlistentry> </varlistentry>
</xsl:for-each> </xsl:for-each>
</variablelist> </variablelist>
</refsection> </refsection>
</xsl:if>
<xsl:for-each select="detaileddescription/para/simplesect[@kind='return']">
<refsection>
<title>Return Value</title>
<xsl:for-each select="para">
<para><xsl:value-of select="."/></para>
</xsl:for-each>
</refsection>
</xsl:for-each>
</refentry> </refentry>