/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to xml/references.xsd

  • Committer: Suren A. Chilingaryan
  • Date: 2015-09-24 02:28:45 UTC
  • mfrom: (305.1.19 views)
  • Revision ID: csa@suren.me-20150924022845-p7hc8lh8v0q48g0r
Finalyze XML support and provide initial support for views (only descriptions so far)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
2
 <xsd:include schemaLocation="types.xsd"/>
 
3
 
 
4
 <xsd:element name="model">
 
5
    <xsd:complexType>
 
6
      <xsd:choice minOccurs="0" maxOccurs="unbounded">
 
7
        <xsd:element name="bank" type="pcilib_bank_t" minOccurs="0" maxOccurs="unbounded" />
 
8
        <xsd:element name="transform" type="pcilib_transform_view_t" minOccurs="0" maxOccurs="unbounded" />
 
9
        <xsd:element name="enum" type="pcilib_enum_view_t" minOccurs="0" maxOccurs="unbounded">
 
10
            <xsd:key name="pcilib_value_name_key">
 
11
                <xsd:selector xpath="name" />
 
12
                <xsd:field xpath="@value" />
 
13
            </xsd:key>
 
14
        </xsd:element>
 
15
        <xsd:element name="unit" type="pcilib_unit_t" minOccurs="0" maxOccurs="unbounded">
 
16
            <xsd:key name="pcilib_unit_transform_key">
 
17
                <xsd:selector xpath="transform" />
 
18
                <xsd:field xpath="@unit" />
 
19
            </xsd:key>
 
20
        </xsd:element>
 
21
      </xsd:choice>
 
22
    </xsd:complexType>
 
23
 
 
24
    <xsd:key name="pcilib_bank_key">
 
25
      <xsd:selector xpath="bank" />
 
26
      <xsd:field xpath="@name" />
 
27
    </xsd:key>
 
28
    <xsd:key name="pcilib_register_key">
 
29
      <xsd:selector xpath="bank/register|bank/register/field" />
 
30
      <xsd:field xpath="@name" />
 
31
    </xsd:key>
 
32
    <xsd:key name="pcilib_view_key">
 
33
      <xsd:selector xpath="transform|enum" />
 
34
      <xsd:field xpath="@name" />
 
35
    </xsd:key>
 
36
    <xsd:key name="pcilib_unit_key">
 
37
      <xsd:selector xpath="unit" />
 
38
      <xsd:field xpath="@name" />
 
39
    </xsd:key>
 
40
 
 
41
    <xsd:keyref name="pcilib_register_view_ref" refer="pcilib_view_key">
 
42
      <xsd:selector xpath="bank/register/view|bank/register/field/view" />
 
43
      <xsd:field xpath="@view" />
 
44
    </xsd:keyref>
 
45
    <xsd:keyref name="pcilib_unit_ref" refer="pcilib_unit_key">
 
46
      <xsd:selector xpath="transform|enum" />
 
47
      <xsd:field xpath="@unit" />
 
48
    </xsd:keyref>
 
49
 </xsd:element>
 
50
</xsd:schema>