Clean up Doxygen to Docbook XSLT, update Atmel Studio blob to use the new IDs.

pull/1469/head
Dean Camera 12 years ago
parent 7941245122
commit c2e7e5783b

@ -89,7 +89,7 @@
<xsl:variable name="name"> <xsl:variable name="name">
<xsl:text>LUFA.</xsl:text> <xsl:text>LUFA.</xsl:text>
<xsl:value-of select="translate(compoundname, '_', '/')"/> <xsl:value-of select="translate(compoundname, '_', '.')"/>
</xsl:variable> </xsl:variable>
<xsl:call-template name="generate.index.id"> <xsl:call-template name="generate.index.id">
@ -131,7 +131,7 @@
<xsl:variable name="name"> <xsl:variable name="name">
<xsl:text>LUFA.</xsl:text> <xsl:text>LUFA.</xsl:text>
<xsl:value-of select="translate(compoundname, '_', '/')"/> <xsl:value-of select="translate(compoundname, '_', '.')"/>
</xsl:variable> </xsl:variable>
<xsl:call-template name="generate.index.id"> <xsl:call-template name="generate.index.id">
@ -192,7 +192,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>
<title> <title>
<xsl:value-of select="$name"/> <xsl:value-of select="$name"/>
</title> </title>
@ -306,7 +306,7 @@
<xsl:apply-templates select="detaileddescription"/> <xsl:apply-templates select="detaileddescription"/>
<table tabstyle="striped"> <table>
<title>Members</title> <title>Members</title>
<tgroup cols="2"> <tgroup cols="2">
<thead> <thead>
@ -506,7 +506,7 @@
</xsl:template> </xsl:template>
<xsl:template match="parameterlist[@kind = 'param']"> <xsl:template match="parameterlist[@kind = 'param']">
<table tabstyle="striped"> <table>
<title>Parameters</title> <title>Parameters</title>
<tgroup cols="3"> <tgroup cols="3">
<thead> <thead>
@ -528,7 +528,7 @@
</xsl:template> </xsl:template>
<xsl:template match="parameterlist[@kind = 'retval']"> <xsl:template match="parameterlist[@kind = 'retval']">
<table tabstyle="striped"> <table>
<title>Return Values</title> <title>Return Values</title>
<tgroup cols="2"> <tgroup cols="2">
<thead> <thead>
@ -671,44 +671,42 @@
</entry> </entry>
</xsl:template> </xsl:template>
<xsl:template match="table"> <xsl:template match="table[caption]">
<xsl:choose> <table>
<xsl:when test="caption"> <title>
<table tabstyle="striped"> <xsl:value-of select="caption"/>
<title> </title>
<xsl:value-of select="caption"/>
</title>
<xsl:call-template name="write.table.content"/> <tgroup cols="{@cols}">
</table> <thead>
</xsl:when> <xsl:apply-templates select="row[entry/@thead = 'yes']"/>
</thead>
<xsl:otherwise> <tbody>
<informaltable tabstyle="striped"> <xsl:apply-templates select="row[entry/@thead != 'yes']"/>
<xsl:call-template name="write.table.content"/> </tbody>
</informaltable> </tgroup>
</xsl:otherwise> </table>
</xsl:choose>
</xsl:template> </xsl:template>
<xsl:template name="write.table.content"> <xsl:template match="table[not(caption)]">
<tgroup cols="{@cols}"> <informaltable>
<thead> <tgroup cols="{@cols}">
<xsl:for-each select="row[1]"> <thead>
<row> <xsl:apply-templates select="row[entry/@thead = 'yes']"/>
<xsl:apply-templates select="entry"/> </thead>
</row>
</xsl:for-each>
</thead>
<tbody> <tbody>
<xsl:for-each select="row[position() != 1]"> <xsl:apply-templates select="row[entry/@thead != 'yes']"/>
<row> </tbody>
<xsl:apply-templates select="entry"/> </tgroup>
</row> </informaltable>
</xsl:for-each> </xsl:template>
</tbody>
</tgroup> <xsl:template match="row">
<row>
<xsl:apply-templates/>
</row>
</xsl:template> </xsl:template>
<xsl:template match="itemizedlist"> <xsl:template match="itemizedlist">

Loading…
Cancel
Save