Imported Upstream version 0.20.12
[profile/ivi/GUPnP.git] / doc / html / schemas-service.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GUPnP Reference Manual: Service Description</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="GUPnP Reference Manual">
8 <link rel="up" href="schemas.html" title="Part III. XML Schemas">
9 <link rel="prev" href="schemas-device.html" title="Device Description">
10 <link rel="next" href="glossary.html" title="Glossary">
11 <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts"></td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18 <td><a accesskey="u" href="schemas.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19 <td><a accesskey="p" href="schemas-device.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20 <td><a accesskey="n" href="glossary.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21 </tr></table>
22 <div class="chapter">
23 <div class="titlepage"><div><div><h2 class="title">
24 <a name="schemas-service"></a>Service Description</h2></div></div></div>
25 <p>
26         This is the schema for the UPnP Service Description document, in the
27         RELAX NG Compact syntax.
28       </p>
29 <pre class="programlisting"># Relax NG schema for the UPnP Service Control Protocol Definition files.  See
30 # section 2.3 of UPnP Device Architecture 1.0 for the canonical reference.
31
32 default namespace = "urn:schemas-upnp-org:service-1-0"
33
34 start = scpd
35
36 scpd = element scpd {
37    element specVersion {
38       element major { text } &amp;
39       element minor { text }
40    } &amp;
41    
42    element actionList {
43       element action {
44          element name { text } &amp;
45          element argumentList {
46             element argument {
47                element name { text } &amp;
48                element direction { "in"|"out" } &amp;
49                element retval { text }? &amp;
50                element relatedStateVariable { text }
51             }+
52          }?
53       }+
54    }? &amp;
55    
56    element serviceStateTable {
57       element stateVariable {
58          attribute sendEvents { "yes"|"no" }? &amp;
59          element name { text } &amp;
60          element dataType {
61             "ui1"|"ui2"|"ui4"|"i1"|"i2"|"i4"|"int"|
62             "r4"|"r8"|"number"|"fixed.14.4"|"float"|
63             "char"|"string"|
64             "date"|"dateTime"|"dateTime.tz"|"time"|"time.tz"|
65             "boolean"|"bin.base64"|"bin.hex"|"uri"|"uuid"
66          } &amp;
67          element defaultValue { text }? &amp;
68          (
69             element allowedValueList {
70                element allowedValue { text }+
71             }
72           |
73             element allowedValueRange {
74                element minimum { text } &amp;
75                element maximum { text } &amp;
76                element step { text }?
77             }
78          )?
79       }+
80    }
81 }
82 </pre>
83 </div>
84 <div class="footer">
85 <hr>
86           Generated by GTK-Doc V1.20</div>
87 </body>
88 </html>