aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/StudioIntegration/HV1
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-06-02 22:02:38 +0200
committerDean Camera <dean@fourwalledcubicle.com>2013-06-02 22:02:38 +0200
commitc2e7e5783befef57cf6c2b14578d2b4e128eff62 (patch)
treeddb53e61c36a284202acf9e884811e770948af9b /LUFA/StudioIntegration/HV1
parent7941245122dc547952e573b2c5e8fd7bc657f257 (diff)
downloadlufa-c2e7e5783befef57cf6c2b14578d2b4e128eff62.tar.gz
lufa-c2e7e5783befef57cf6c2b14578d2b4e128eff62.tar.bz2
lufa-c2e7e5783befef57cf6c2b14578d2b4e128eff62.zip
Clean up Doxygen to Docbook XSLT, update Atmel Studio blob to use the new IDs.
Diffstat (limited to 'LUFA/StudioIntegration/HV1')
-rw-r--r--LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt76
1 files changed, 37 insertions, 39 deletions
diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
index 479297331..111b75aae 100644
--- a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
+++ b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
@@ -89,7 +89,7 @@
<xsl:variable name="name">
<xsl:text>LUFA.</xsl:text>
- <xsl:value-of select="translate(compoundname, '_', '/')"/>
+ <xsl:value-of select="translate(compoundname, '_', '.')"/>
</xsl:variable>
<xsl:call-template name="generate.index.id">
@@ -131,7 +131,7 @@
<xsl:variable name="name">
<xsl:text>LUFA.</xsl:text>
- <xsl:value-of select="translate(compoundname, '_', '/')"/>
+ <xsl:value-of select="translate(compoundname, '_', '.')"/>
</xsl:variable>
<xsl:call-template name="generate.index.id">
@@ -192,7 +192,7 @@
<xsl:apply-templates select="detaileddescription"/>
<xsl:for-each select="sectiondef[@kind = 'public-attrib']">
- <table tabstyle="striped">
+ <table>
<title>
<xsl:value-of select="$name"/>
</title>
@@ -306,7 +306,7 @@
<xsl:apply-templates select="detaileddescription"/>
- <table tabstyle="striped">
+ <table>
<title>Members</title>
<tgroup cols="2">
<thead>
@@ -506,7 +506,7 @@
</xsl:template>
<xsl:template match="parameterlist[@kind = 'param']">
- <table tabstyle="striped">
+ <table>
<title>Parameters</title>
<tgroup cols="3">
<thead>
@@ -528,7 +528,7 @@
</xsl:template>
<xsl:template match="parameterlist[@kind = 'retval']">
- <table tabstyle="striped">
+ <table>
<title>Return Values</title>
<tgroup cols="2">
<thead>
@@ -671,44 +671,42 @@
</entry>
</xsl:template>
- <xsl:template match="table">
- <xsl:choose>
- <xsl:when test="caption">
- <table tabstyle="striped">
- <title>
- <xsl:value-of select="caption"/>
- </title>
+ <xsl:template match="table[caption]">
+ <table>
+ <title>
+ <xsl:value-of select="caption"/>
+ </title>
- <xsl:call-template name="write.table.content"/>
- </table>
- </xsl:when>
+ <tgroup cols="{@cols}">
+ <thead>
+ <xsl:apply-templates select="row[entry/@thead = 'yes']"/>
+ </thead>
- <xsl:otherwise>
- <informaltable tabstyle="striped">
- <xsl:call-template name="write.table.content"/>
- </informaltable>
- </xsl:otherwise>
- </xsl:choose>
+ <tbody>
+ <xsl:apply-templates select="row[entry/@thead != 'yes']"/>
+ </tbody>
+ </tgroup>
+ </table>
</xsl:template>
- <xsl:template name="write.table.content">
- <tgroup cols="{@cols}">
- <thead>
- <xsl:for-each select="row[1]">
- <row>
- <xsl:apply-templates select="entry"/>
- </row>
- </xsl:for-each>
- </thead>
+ <xsl:template match="table[not(caption)]">
+ <informaltable>
+ <tgroup cols="{@cols}">
+ <thead>
+ <xsl:apply-templates select="row[entry/@thead = 'yes']"/>
+ </thead>
- <tbody>
- <xsl:for-each select="row[position() != 1]">
- <row>
- <xsl:apply-templates select="entry"/>
- </row>
- </xsl:for-each>
- </tbody>
- </tgroup>
+ <tbody>
+ <xsl:apply-templates select="row[entry/@thead != 'yes']"/>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </xsl:template>
+
+ <xsl:template match="row">
+ <row>
+ <xsl:apply-templates/>
+ </row>
</xsl:template>
<xsl:template match="itemizedlist">