diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-02-12 09:58:44 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2009-02-13 00:01:40 +0200 |
commit | 940e71f66fbe9d6ec3534ae57dd680b49b0289cf (patch) | |
tree | 7b6fcd70be95d533dd98cb0a59c7226790fd8e48 /tools | |
parent | 786b25f4e12902bb8312617c22ddf394a03597e8 (diff) |
devhelp.xsl: correctly index all types (except external-type) and simplify
Diffstat (limited to 'tools')
-rw-r--r-- | tools/devhelp.xsl | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/tools/devhelp.xsl b/tools/devhelp.xsl index be2e874..5442ac9 100644 --- a/tools/devhelp.xsl +++ b/tools/devhelp.xsl @@ -35,44 +35,56 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA <xsl:text>
</xsl:text> <xsl:apply-templates select="//method" /> <xsl:apply-templates select="//signal" /> + <xsl:apply-templates select="//property" /> <xsl:apply-templates select="//tp:enum" /> + <xsl:apply-templates select="//tp:simple-type" /> + <xsl:apply-templates select="//tp:mapping" /> + <xsl:apply-templates select="//tp:flags" /> + <xsl:apply-templates select="//tp:struct" /> </functions> <xsl:text>
</xsl:text> </book> </xsl:template> - <xsl:template match="//interface"> + <xsl:template match="interface"> <xsl:text> </xsl:text> <sub xmlns="http://www.devhelp.net/book" name="{@name}" link="{concat('spec.html#', @name)}" /> <xsl:text>
</xsl:text> </xsl:template> - <xsl:template match="//property"> + <xsl:template match="method"> <xsl:text> </xsl:text> <keyword type="function" xmlns="http://www.devhelp.net/book" name="{@name}" - link="{concat('spec.html#', concat(../@name, concat('.', @name)))}" /> + link="spec.html#{../@name}.{@name}" /> <xsl:text>
</xsl:text> </xsl:template> - <xsl:template match="//method"> + <xsl:template match="signal | property"> <xsl:text> </xsl:text> - <keyword type="function" xmlns="http://www.devhelp.net/book" name="{@name}" - link="{concat('spec.html#', concat(../@name, concat('.', @name)))}" /> + <keyword type="" xmlns="http://www.devhelp.net/book" name="{@name}" + link="spec.html#{../@name}.{@name}" /> <xsl:text>
</xsl:text> </xsl:template> - <xsl:template match="//signal"> + <xsl:template match="tp:simple-type"> <xsl:text> </xsl:text> - <keyword type="" xmlns="http://www.devhelp.net/book" name="{@name}" - link="{concat('spec.html#', concat(../@name, concat('.', @name)))}" /> + <keyword type="typedef" xmlns="http://www.devhelp.net/book" name="{@name}" + link="spec.html#type-{@name}" /> <xsl:text>
</xsl:text> </xsl:template> - <xsl:template match="//tp:enum | //tp:simple-type | //tp:mapping | //tp:flags"> + <xsl:template match="tp:enum | tp:flags"> <xsl:text> </xsl:text> <keyword type="enum" xmlns="http://www.devhelp.net/book" name="{@name}" - link="{concat('spec.html#type-', @name)}" /> + link="spec.html#type-{@name}" /> + <xsl:text>
</xsl:text> + </xsl:template> + + <xsl:template match="tp:mapping | tp:struct"> + <xsl:text> </xsl:text> + <keyword type="struct" xmlns="http://www.devhelp.net/book" name="{@name}" + link="spec.html#type-{@name}" /> <xsl:text>
</xsl:text> </xsl:template> |