annotate doxy2devhelp.xsl @ 30841:01dea46bbb42

Add some more flag definitions to the p2p flags.
author masca@cpw.pidgin.im
date Mon, 05 Jul 2010 20:09:20 +0000
parents f34539eb7a61
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20912
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
1 <xsl:stylesheet
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
4 version="1.0">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
5
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
6 <!-- Based on http://bur.st/~eleusis/devhelp/doxy2devhelp.xsl
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
7 (http://bur.st/~eleusis/devhelp/README)
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
8 which is based on http://bugzilla.gnome.org/show_bug.cgi?id=122450
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
9 -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
10
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
11 <xsl:output method="xml" version="1.0" indent="yes"/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
12
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
13 <xsl:param name="reference_prefix"></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
14
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
15 <xsl:template match="/">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
16 <book title="Pidgin Documentation"
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
17 name="pidgin"
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
18 link="{$reference_prefix}main.html">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
19 <chapters>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
20 <sub name="Modules" link="{$reference_prefix}modules.html">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
21 <xsl:apply-templates select="doxygenindex/compound[@kind='group']">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
22 <xsl:sort select="."/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
23 </xsl:apply-templates>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
24 </sub>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
25 <!-- annotated.html has the short descriptions beside each struct. is
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
26 that more useful than being grouped alphabetically?
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
27 -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
28 <sub name="Structs" link="{$reference_prefix}classes.html">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
29 <xsl:apply-templates select="doxygenindex/compound[@kind='struct']">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
30 <xsl:sort select="."/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
31 </xsl:apply-templates>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
32 </sub>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
33 <!-- This is redundant given Modules -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
34 <!--
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
35 <sub name="Directories" link="{$reference_prefix}dirs.html">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
36 <xsl:apply-templates select="doxygenindex/compound[@kind='dir']">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
37 <xsl:sort select="."/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
38 </xsl:apply-templates>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
39 </sub>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
40 -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
41 <!-- FIXME: Some files show up here but are broken links; mostly
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
42 files that are under pages...
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
43 -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
44 <sub name="Files" link="{$reference_prefix}files.html">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
45 <xsl:apply-templates select="doxygenindex/compound[@kind='file']">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
46 <xsl:sort select="."/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
47 </xsl:apply-templates>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
48 </sub>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
49 <sub name="Signals, HOWTOs, Other" link="{$reference_prefix}pages.html">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
50 <xsl:apply-templates select="doxygenindex/compound[@kind='page']">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
51 <xsl:sort select="."/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
52 </xsl:apply-templates>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
53 </sub>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
54 </chapters>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
55
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
56 <functions>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
57 <!-- @todo: maybe select only the real functions, ie those with kind=="function"? -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
58 <xsl:apply-templates select="doxygenindex/compound/member" mode="as-function"/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
59 </functions>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
60 </book>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
61 </xsl:template>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
62
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
63 <xsl:template match="compound">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
64 <xsl:param name="name"><xsl:value-of select="name"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
65 <xsl:param name="link"><xsl:value-of select="@refid"/>.html</xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
66 <sub name="{$name}" link="{$reference_prefix}{$link}">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
67 <xsl:apply-templates select="member" mode="as-sub">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
68 <xsl:sort select="."/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
69 </xsl:apply-templates>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
70 </sub>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
71 </xsl:template>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
72
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
73 <xsl:template match="member" mode="as-function">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
74 <!--
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
75 <function name="atk_set_value" link="atk-atkvalue.html#ATK-SET-VALUE"/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
76 -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
77 <xsl:param name="name"><xsl:value-of select="name"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
78 <!-- Link is refid attribute of parent element + "#" + diff between refid of parent and own refid -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
79 <xsl:param name="refid_parent"><xsl:value-of select="parent::node()/@refid"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
80 <xsl:param name="own_refid"><xsl:value-of select="@refid"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
81 <xsl:param name="offset"><xsl:value-of select="string-length($refid_parent) + 3"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
82 <xsl:param name="ref_diff"><xsl:value-of select="substring($own_refid, $offset, 33)"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
83 <xsl:param name="link"><xsl:value-of select="$refid_parent"/>.html#<xsl:value-of select="$ref_diff"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
84 <function name="{$name}" link="{$reference_prefix}{$link}"/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
85 </xsl:template>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
86
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
87 <xsl:template match="member" mode="as-sub">
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
88 <xsl:param name="name"><xsl:value-of select="name"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
89 <!-- Link is refid attribute of parent element + "#" + diff between refid of parent and own refid -->
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
90 <xsl:param name="refid_parent"><xsl:value-of select="parent::node()/@refid"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
91 <xsl:param name="own_refid"><xsl:value-of select="@refid"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
92 <xsl:param name="offset"><xsl:value-of select="string-length($refid_parent) + 3"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
93 <xsl:param name="ref_diff"><xsl:value-of select="substring($own_refid, $offset, 33)"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
94 <xsl:param name="link"><xsl:value-of select="$refid_parent"/>.html#<xsl:value-of select="$ref_diff"/></xsl:param>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
95 <sub name="{$name}" link="{$reference_prefix}{$link}"/>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
96 </xsl:template>
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
97
f34539eb7a61 Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
98 </xsl:stylesheet>