File: news.rng

package info (click to toggle)
libvirt 5.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 240,844 kB
  • sloc: ansic: 584,521; xml: 176,725; sh: 9,912; python: 4,731; perl: 4,343; makefile: 3,321; ml: 465
file content (72 lines) | stat: -rw-r--r-- 1,681 bytes parent folder | download | duplicates (3)
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
66
67
68
69
70
71
72
<?xml version="1.0"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <start>
    <ref name="libvirt"/>
  </start>

  <define name="libvirt">
    <element name="libvirt">
      <oneOrMore>
        <ref name="release"/>
      </oneOrMore>
    </element>
  </define>

  <define name="release">
    <element name="release">
      <attribute name="version">
        <data type="string">
          <param name="pattern">v[0-9]+\.[0-9]+\.[0-9]+</param>
        </data>
      </attribute>
      <attribute name="date">
        <data type="string">
          <param name="pattern">[0-9]{4}-[0-9]{2}-[0-9]{2}|unreleased</param>
        </data>
      </attribute>
      <oneOrMore>
        <ref name="section"/>
      </oneOrMore>
    </element>
  </define>

  <define name="section">
    <element name="section">
      <attribute name="title">
        <data type="string"/>
      </attribute>
      <zeroOrMore>
        <ref name="change"/>
      </zeroOrMore>
    </element>
  </define>

  <define name="change">
    <element name="change">
      <element name="summary">
        <data type="string">
          <!-- Use literal newline instead of \n for bug in libxml2 2.7.6 -->
          <param name="pattern">\n[^
]+\n +</param>
        </data>
      </element>
      <optional>
        <element name="description">
          <ref name="description"/>
        </element>
      </optional>
    </element>
  </define>

  <define name="description">
    <oneOrMore>
      <choice>
        <text/>
        <element name="code">
          <text/>
        </element>
      </choice>
    </oneOrMore>
  </define>

</grammar>