summaryrefslogtreecommitdiff
path: root/api/poi-service/constants.xsl
blob: 7616ebb912c015c51d2b9598e8fa1d4ad1e4ffe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
  <!-- 09.3.2011 Marco Residori: First Draft -->
  <!-- 14.3.2011 Marco Residori: Improved layout -->
  <xsl:output method="xml" version="1.0" encoding="iso-8859-15" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes"/>
  <xsl:template match="/">
    <html>
      <!-- head -->
      <head>
        <title>DBUS Introspection Data</title>
        <style type="text/css">
        body { color: black; background-color: white } 
        h1 { font-family: sans-serif }
        ul { list-style-type: none; margin-bottom: 10px }
        li { font-family: sans-serif }
        .keyword { font-style: italic }
        .id { font-style: italic; font-size:8pt; }
        .title { font-style: italic; color: blue }
        .line { font-style: italic; font-size:8pt; color: green}
        .version { font-family: monospace }
      </style>
      </head>
      <!-- body -->
      <body>
        <!-- definitions -->
        <xsl:apply-templates select="constants"/>
      </body>
    </html>
  </xsl:template>
  <xsl:template match="constants">
    <div class="constants">
      <h1>
        <span class="keyword">constants</span>
        <xsl:text> </xsl:text>
        <span class="title">
          <xsl:value-of select="@name"/>
        </span>
        <xsl:text> </xsl:text>
        <span class="version">version</span>
        <xsl:text> </xsl:text>
        <span class="version">
          <xsl:value-of select="version"/>
        </span>
      </h1>
      <xsl:apply-templates select="doc"/>
      <xsl:for-each select="id">
        <hr/>
        <li>
          <xsl:apply-templates select="doc"/>
          <span class="id"><xsl:value-of select="@name"/> = <xsl:value-of select="@value"/></span>
        </li>
      </xsl:for-each>
    </div>
  </xsl:template>
  <xsl:template match="doc">
    <li>
      <span class="line">
        <xsl:for-each select="line">
          <xsl:value-of select="."/>
          <xsl:element name="br"/>
        </xsl:for-each>
      </span>
    </li>
  </xsl:template>
</xsl:stylesheet>