1 <?xml version="1.0" encoding="iso-8859-15"?>
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7 <xsl:output method="xml" version="1.0" encoding="iso-8859-15" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" indent="yes"/>
9 <xsl:template match="/">
10 <html xmlns="http://www.w3.org/1999/xhtml">
12 <title>DBUS Introspection data</title>
13 <style type="text/css">
14 body { color: black; background-color: white }
15 h1 { font-family: sans-serif }
16 ul { list-style-type: none; margin-bottom: 10px }
17 li { font-family: sans-serif }
18 .keyword { font-style: italic }
19 .type { font-weight: bold }
20 .symbol { font-family: monospace }
21 .interface { padding: 10px; margin: 10px }
25 <xsl:for-each select="node/interface">
26 <div class="interface">
28 <span class="keyword">interface</span><xsl:text> </xsl:text>
29 <span class="symbol"><xsl:value-of select="@name"/></span>
34 <xsl:apply-templates select="annotation"/>
36 <xsl:for-each select="method|signal|property">
38 <span class="keyword"><xsl:value-of select="name()"/></span>
39 <xsl:text> </xsl:text>
40 <span class="symbol"><xsl:value-of select="@name"/></span>
43 <xsl:apply-templates select="annotation"/>
44 <xsl:for-each select="arg">
46 <span class="keyword">
48 <xsl:when test="@direction != """>
49 <xsl:value-of select="@direction"/>
51 <xsl:when test="name(..) = "signal"">
60 <xsl:text> </xsl:text>
62 <span class="type"><xsl:value-of select="@type"/></span><xsl:text> </xsl:text>
63 <span class="symbol"><xsl:value-of select="@name"/></span><xsl:text> </xsl:text>
79 <xsl:template match="annotation">
80 <li xmlns="http://www.w3.org/1999/xhtml">
81 <span class="keyword">annotation</span>
82 <code><xsl:value-of select="@name"/></code><xsl:text> = </xsl:text>
83 <code><xsl:value-of select="@value"/></code>