|
|
@ -47,6 +47,7 @@
|
|
|
|
<xsl:variable name="book.title">
|
|
|
|
<xsl:variable name="book.title">
|
|
|
|
<xsl:call-template name="generate.book.title"/>
|
|
|
|
<xsl:call-template name="generate.book.title"/>
|
|
|
|
</xsl:variable>
|
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:variable name="book.id">
|
|
|
|
<xsl:variable name="book.id">
|
|
|
|
<xsl:call-template name="generate.book.id">
|
|
|
|
<xsl:call-template name="generate.book.id">
|
|
|
|
<xsl:with-param name="book.title" select="$book.title"/>
|
|
|
|
<xsl:with-param name="book.title" select="$book.title"/>
|
|
|
@ -60,11 +61,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Add index chapter -->
|
|
|
|
<!-- Add index chapter -->
|
|
|
|
<xsl:call-template name="generate.top.level.page">
|
|
|
|
<xsl:call-template name="generate.top.level.page">
|
|
|
|
<xsl:with-param name="top.level.page" select="compounddef[@kind = 'page' and contains(@id, 'index')]"/>
|
|
|
|
<xsl:with-param name="top.level.page" select="compounddef[@kind = 'page' and @id = 'indexpage']"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:call-template>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Add free-floating chapters -->
|
|
|
|
<!-- Add free-floating chapters -->
|
|
|
|
<xsl:for-each select="compounddef[@kind = 'page' and not(contains(@id, 'index'))]">
|
|
|
|
<xsl:for-each select="compounddef[@kind = 'page' and not(@id = 'indexpage')]">
|
|
|
|
<xsl:if test="not(//innerpage[@refid = current()/@id])">
|
|
|
|
<xsl:if test="not(//innerpage[@refid = current()/@id])">
|
|
|
|
<xsl:call-template name="generate.top.level.page">
|
|
|
|
<xsl:call-template name="generate.top.level.page">
|
|
|
|
<xsl:with-param name="top.level.page" select="current()"/>
|
|
|
|
<xsl:with-param name="top.level.page" select="current()"/>
|
|
|
@ -124,16 +125,13 @@
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
</title>
|
|
|
|
</title>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:variable name="book.title">
|
|
|
|
|
|
|
|
<xsl:call-template name="generate.book.title"/>
|
|
|
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:variable name="name">
|
|
|
|
<xsl:variable name="name">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains(compoundname, '_')">
|
|
|
|
<xsl:when test="contains(compoundname, '_')">
|
|
|
|
<xsl:value-of select="translate(compoundname, '_', '/')"/>
|
|
|
|
<xsl:value-of select="translate(compoundname, '_', '/')"/>
|
|
|
|
<xsl:text>.h</xsl:text>
|
|
|
|
<xsl:text>.h</xsl:text>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="compoundname"/>
|
|
|
|
<xsl:value-of select="compoundname"/>
|
|
|
|
<xsl:text>.h</xsl:text>
|
|
|
|
<xsl:text>.h</xsl:text>
|
|
|
@ -147,6 +145,7 @@
|
|
|
|
<xsl:value-of select="translate(compoundname, '_', '.')"/>
|
|
|
|
<xsl:value-of select="translate(compoundname, '_', '.')"/>
|
|
|
|
<xsl:text>.h</xsl:text>
|
|
|
|
<xsl:text>.h</xsl:text>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="compoundname"/>
|
|
|
|
<xsl:value-of select="compoundname"/>
|
|
|
|
<xsl:text>.h</xsl:text>
|
|
|
|
<xsl:text>.h</xsl:text>
|
|
|
@ -194,10 +193,12 @@
|
|
|
|
<xsl:when test="@kind = 'struct'">
|
|
|
|
<xsl:when test="@kind = 'struct'">
|
|
|
|
<xsl:text>Struct </xsl:text>
|
|
|
|
<xsl:text>Struct </xsl:text>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:when test="@kind = 'union'">
|
|
|
|
<xsl:when test="@kind = 'union'">
|
|
|
|
<xsl:text>Union </xsl:text>
|
|
|
|
<xsl:text>Union </xsl:text>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:value-of select="$name"/>
|
|
|
|
<xsl:value-of select="$name"/>
|
|
|
|
</title>
|
|
|
|
</title>
|
|
|
|
|
|
|
|
|
|
|
@ -207,7 +208,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:apply-templates select="detaileddescription"/>
|
|
|
|
<xsl:apply-templates select="detaileddescription"/>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:for-each select="sectiondef[@kind='public-attrib']">
|
|
|
|
<xsl:for-each select="sectiondef[@kind = 'public-attrib']">
|
|
|
|
<table tabstyle="striped">
|
|
|
|
<table tabstyle="striped">
|
|
|
|
<title>
|
|
|
|
<title>
|
|
|
|
<xsl:value-of select="$name"/>
|
|
|
|
<xsl:value-of select="$name"/>
|
|
|
@ -249,17 +250,15 @@
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="memberdef[@kind = 'function']">
|
|
|
|
<xsl:template match="memberdef[@kind = 'function']">
|
|
|
|
<xsl:variable name="name" select="name"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section id="{@id}" xreflabel="{name}">
|
|
|
|
<section id="{@id}" xreflabel="{name}">
|
|
|
|
<title>
|
|
|
|
<title>
|
|
|
|
<xsl:text>Function </xsl:text>
|
|
|
|
<xsl:text>Function </xsl:text>
|
|
|
|
<xsl:value-of select="$name"/>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:text>()</xsl:text>
|
|
|
|
<xsl:text>()</xsl:text>
|
|
|
|
</title>
|
|
|
|
</title>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="generate.index.id">
|
|
|
|
<xsl:call-template name="generate.index.id">
|
|
|
|
<xsl:with-param name="name" select="$name"/>
|
|
|
|
<xsl:with-param name="name" select="name"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:call-template>
|
|
|
|
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<para>
|
|
|
@ -348,8 +347,6 @@
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="memberdef[@kind = 'define']">
|
|
|
|
<xsl:template match="memberdef[@kind = 'define']">
|
|
|
|
<xsl:variable name="name" select="name"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section id="{@id}" xreflabel="{name}">
|
|
|
|
<section id="{@id}" xreflabel="{name}">
|
|
|
|
<title>
|
|
|
|
<title>
|
|
|
|
<xsl:text>Macro </xsl:text>
|
|
|
|
<xsl:text>Macro </xsl:text>
|
|
|
@ -357,7 +354,7 @@
|
|
|
|
</title>
|
|
|
|
</title>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="generate.index.id">
|
|
|
|
<xsl:call-template name="generate.index.id">
|
|
|
|
<xsl:with-param name="name" select="$name"/>
|
|
|
|
<xsl:with-param name="name" select="name"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:call-template>
|
|
|
|
|
|
|
|
|
|
|
|
<programlisting language="c">
|
|
|
|
<programlisting language="c">
|
|
|
@ -391,21 +388,19 @@
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="memberdef[@kind = 'variable' or @kind = 'typedef']">
|
|
|
|
<xsl:template match="memberdef[@kind = 'variable' or @kind = 'typedef']">
|
|
|
|
<xsl:variable name="name" select="name"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section id="{@id}" xreflabel="{name}">
|
|
|
|
<section id="{@id}" xreflabel="{name}">
|
|
|
|
<!-- Doxygen gets confused and thinks function pointer type definitions
|
|
|
|
<!-- Doxygen gets confused and thinks function pointer type definitions
|
|
|
|
are variables, so we need to map them to this common section and
|
|
|
|
are variables, so we need to map them to this common section and
|
|
|
|
check the definition to see which of the two it is. -->
|
|
|
|
check the definition to see which of the two it is. -->
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains(definition,'typedef')">
|
|
|
|
<xsl:when test="contains(definition, 'typedef')">
|
|
|
|
<title>
|
|
|
|
<title>
|
|
|
|
<xsl:text>Type </xsl:text>
|
|
|
|
<xsl:text>Type </xsl:text>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
</title>
|
|
|
|
</title>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="generate.index.id">
|
|
|
|
<xsl:call-template name="generate.index.id">
|
|
|
|
<xsl:with-param name="name" select="$name"/>
|
|
|
|
<xsl:with-param name="name" select="name"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:call-template>
|
|
|
|
|
|
|
|
|
|
|
|
<programlisting language="c">
|
|
|
|
<programlisting language="c">
|
|
|
@ -427,7 +422,7 @@
|
|
|
|
</title>
|
|
|
|
</title>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="generate.index.id">
|
|
|
|
<xsl:call-template name="generate.index.id">
|
|
|
|
<xsl:with-param name="name" select="$name"/>
|
|
|
|
<xsl:with-param name="name" select="name"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:call-template>
|
|
|
|
|
|
|
|
|
|
|
|
<programlisting language="c">
|
|
|
|
<programlisting language="c">
|
|
|
@ -471,11 +466,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="simplesect">
|
|
|
|
<xsl:template match="simplesect">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="@kind = 'warning'">
|
|
|
|
<xsl:when test="@kind = 'par'">
|
|
|
|
<warning>
|
|
|
|
<note>
|
|
|
|
<title>Warning</title>
|
|
|
|
<title>
|
|
|
|
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
|
|
|
|
</title>
|
|
|
|
<xsl:apply-templates select="para"/>
|
|
|
|
<xsl:apply-templates select="para"/>
|
|
|
|
</warning>
|
|
|
|
</note>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:when test="@kind = 'return'">
|
|
|
|
<xsl:when test="@kind = 'return'">
|
|
|
@ -485,18 +482,16 @@
|
|
|
|
</note>
|
|
|
|
</note>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:when test="@kind = 'pre'">
|
|
|
|
<xsl:when test="@kind = 'warning'">
|
|
|
|
<note>
|
|
|
|
<warning>
|
|
|
|
<title>Precondition</title>
|
|
|
|
<title>Warning</title>
|
|
|
|
<xsl:apply-templates select="para"/>
|
|
|
|
<xsl:apply-templates select="para"/>
|
|
|
|
</note>
|
|
|
|
</warning>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:when test="@kind = 'par'">
|
|
|
|
<xsl:when test="@kind = 'pre'">
|
|
|
|
<note>
|
|
|
|
<note>
|
|
|
|
<title>
|
|
|
|
<title>Precondition</title>
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
|
|
|
|
</title>
|
|
|
|
|
|
|
|
<xsl:apply-templates select="para"/>
|
|
|
|
<xsl:apply-templates select="para"/>
|
|
|
|
</note>
|
|
|
|
</note>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
@ -569,6 +564,7 @@
|
|
|
|
<xsl:when test="not(descendant::parametername/@direction)">
|
|
|
|
<xsl:when test="not(descendant::parametername/@direction)">
|
|
|
|
<emphasis role="italic">?</emphasis>
|
|
|
|
<emphasis role="italic">?</emphasis>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<emphasis role="bold">
|
|
|
|
<emphasis role="bold">
|
|
|
|
[<xsl:value-of select="descendant::parametername/@direction"/>]
|
|
|
|
[<xsl:value-of select="descendant::parametername/@direction"/>]
|
|
|
@ -655,6 +651,11 @@
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Don't show links to file compound definitions, as they are discarded -->
|
|
|
|
|
|
|
|
<xsl:when test="ancestor::*/compounddef[@kind = 'file' and @id = current()/@refid]">
|
|
|
|
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Show links outside program listings -->
|
|
|
|
<!-- Show links outside program listings -->
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<link linkend="{@refid}">
|
|
|
|
<link linkend="{@refid}">
|
|
|
@ -674,6 +675,7 @@
|
|
|
|
<xsl:call-template name="write.table.content"/>
|
|
|
|
<xsl:call-template name="write.table.content"/>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<informaltable tabstyle="striped">
|
|
|
|
<informaltable tabstyle="striped">
|
|
|
|
<xsl:call-template name="write.table.content"/>
|
|
|
|
<xsl:call-template name="write.table.content"/>
|
|
|
@ -711,13 +713,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="itemizedlist">
|
|
|
|
<xsl:template match="itemizedlist">
|
|
|
|
<itemizedlist>
|
|
|
|
<itemizedlist>
|
|
|
|
<xsl:apply-templates select="listitem"/>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</itemizedlist>
|
|
|
|
</itemizedlist>
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="orderedlist">
|
|
|
|
<xsl:template match="orderedlist">
|
|
|
|
<orderedlist>
|
|
|
|
<orderedlist>
|
|
|
|
<xsl:apply-templates select="listitem"/>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</orderedlist>
|
|
|
|
</orderedlist>
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
@ -737,9 +739,9 @@
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="highlight">
|
|
|
|
<xsl:template match="highlight">
|
|
|
|
<emphasis role="{@class}">
|
|
|
|
<!-- <emphasis role="{@class}"> -->
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</emphasis>
|
|
|
|
<!-- </emphasis> -->
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="sp[ancestor::codeline]">
|
|
|
|
<xsl:template match="sp[ancestor::codeline]">
|
|
|
|