File: device-description.rnc

package info (click to toggle)
gupnp 1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,420 kB
  • sloc: ansic: 15,519; xml: 1,269; python: 418; javascript: 93; makefile: 34
file content (57 lines) | stat: -rw-r--r-- 1,354 bytes parent folder | download | duplicates (9)
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
# Relax NG schema for UPnP Device Description files.  See section 2.1 of UPnP
# Device Architecture 1.0 for the canonical reference.

default namespace = "urn:schemas-upnp-org:device-1-0"

start = root

root = element root {
   element specVersion {
      element major { text } &
      element minor { text }
   } &
   
   element URLBase { text }? &
   
   device
}

device = element device {
   element deviceType { text } &
   element friendlyName { text } &
   element manufacturer { text } &
   element manufacturerURL { text }? &
   element modelDescription { text }? &
   element modelName { text } &
   element modelNumber { text }? &
   element modelURL { text }? &
   element serialNumber { text }? &
   element UDN { text } &
   element UPC { text }? &
   
   element iconList {
      element icon {
         element mimetype { text } &
         element width { text } &
         element height { text } &
         element depth { text } &
         element url { text }
      }+
   }? &
   
   element serviceList {
      element service {
         element serviceType { text } &
         element serviceId { text } &
         element SCPDURL { text } &
         element controlURL { text } &
         element eventSubURL { text }
      }+
   }? &
   
   element deviceList {
      device+
   }? &
   
   element presentationURL { text }?
}+