Bumped package version to 1.0.6.
[profile/ivi/wayland.git] / doc / Wayland / doxygen-to-publican.xsl
1 <?xml version="1.0" ?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <xsl:output method="xml" encoding="UTF-8" indent="yes" />
4
5 <xsl:template match="/">
6   <!-- insert docbook's DOCTYPE blurb -->
7     <xsl:text disable-output-escaping = "yes"><![CDATA[
8 <!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
9   <!ENTITY % BOOK_ENTITIES SYSTEM "Wayland.ent">
10 %BOOK_ENTITIES;
11 ]>
12 ]]></xsl:text>
13
14   <section id="sect-Library-Client">
15     <title>Client API</title>
16     <para>Following is the Wayland library classes for clients
17           (<emphasis>libwayland-client</emphasis>). Note that most of the
18           procedures are related with IPC, which is the main responsibility of
19           the library.
20     </para>
21
22     <para>
23     <variablelist>
24     <xsl:apply-templates select="/doxygen/compounddef" />
25     </variablelist>
26     </para>
27
28     <para>And methods for the respective classes.</para>
29
30     <para>
31     <variablelist>
32     <xsl:apply-templates select="/doxygen/compounddef/sectiondef/memberdef" />
33     </variablelist>
34     </para>
35   </section>
36 </xsl:template>
37
38
39 <!-- methods -->
40 <xsl:template match="memberdef" >
41     <xsl:if test="@kind = 'function' and @static = 'no'">
42     <varlistentry>
43         <term>
44         <xsl:value-of select="name" />
45         - <xsl:value-of select="briefdescription" />
46         </term>
47         <listitem>
48             <para></para>
49         </listitem>
50     </varlistentry>
51     </xsl:if>
52 </xsl:template>
53
54 <!-- classes -->
55 <xsl:template match="compounddef" >
56     <xsl:if test="@kind = 'class' ">
57     <varlistentry>
58         <term>
59             <xsl:value-of select="compoundname" />
60             <xsl:if test="briefdescription">
61                 - <xsl:value-of select="briefdescription" />
62             </xsl:if>
63         </term>
64
65         <!-- TODO: the output text is not splitting paragraphs correctly -->
66         <listitem>
67             <para><xsl:value-of select="detaileddescription"/></para>
68         </listitem>
69     </varlistentry>
70     </xsl:if>
71 </xsl:template>
72 </xsl:stylesheet>