1
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2
xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"
3
exclude-result-prefixes="tp">
5
<xsl:output method="text" indent="no" encoding="ascii"/>
7
<xsl:template match="tp:error" mode="gtkdoc">
8
* @TP_ERROR_<xsl:value-of select="translate(@name, 'abcdefghijklmnopqrstuvwxyz .', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ__')"/>: <xsl:value-of select="concat(../@namespace, '.', translate(@name, ' ', ''))"/>:
9
* <xsl:value-of select="translate(tp:docstring, ' ', '')"/>
12
<xsl:template match="tp:error">
13
<xsl:text> TP_ERROR_</xsl:text><xsl:value-of select="translate(@name, 'abcdefghijklmnopqrstuvwxyz .', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ__')"/>,
16
<xsl:template match="text()"/>
18
<xsl:template match="/tp:errors">/* Generated from the Telepathy spec
20
<xsl:for-each select="tp:copyright">
21
<xsl:value-of select="."/><xsl:text>
22
</xsl:text></xsl:for-each><xsl:text>
23
</xsl:text><xsl:value-of select="tp:license"/>
26
#include <glib-object.h>
30
GType tp_error_get_type (void);
35
* The GType of the Telepathy error enumeration.
37
#define TP_TYPE_ERROR (tp_error_get_type())
40
* TpError:<xsl:apply-templates select="tp:error" mode="gtkdoc"/>
42
* Enumerated type representing the Telepathy D-Bus errors.
45
<xsl:apply-templates select="tp:error"/>} TpError;
52
<!-- vim:set sw=2 sts=2 et noai noci: -->