Skip to content

Commit

Permalink
add database element to schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
thobreuer committed Nov 2, 2022
1 parent 117cda8 commit fdc2c11
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
8 changes: 7 additions & 1 deletion contrib/schema/jube.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<!ELEMENT analyse ((file|include)*)>
<!ATTLIST analyse step CDATA #REQUIRED
tag CDATA #IMPLIED>
<!ELEMENT result ((use|table|syslog|include)*)>
<!ELEMENT result ((use|table|database|syslog|include)*)>
<!ATTLIST result result_dir CDATA #IMPLIED
tag CDATA #IMPLIED>
<!ELEMENT table ((column|include)*)>
Expand All @@ -143,6 +143,12 @@
format CDATA #IMPLIED
title CDATA #IMPLIED
tag CDATA #IMPLIED>
<!ELEMENT database ((key|include)*)>
<!ATTLIST database name CDATA #REQUIRED
primekeys CDATA #IMPLIED
file CDATA #IMPLIED
filter CDATA #IMPLIED
tag CDATA #IMPLIED>
<!ELEMENT syslog ((key|include)*)>
<!ATTLIST syslog name CDATA #REQUIRED
address CDATA #IMPLIED
Expand Down
9 changes: 8 additions & 1 deletion contrib/schema/jube.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ analyse = element analyse { attlist.analyse, (file | \include)* }
attlist.analyse &=
attribute step { text },
attribute tag { text }?
result = element result { attlist.result, (use | table | syslog | \include)* }
result = element result { attlist.result, (use | table |database | syslog | \include)* }
attlist.result &=
attribute result_dir { text }?,
attribute tag { text }?
Expand All @@ -190,6 +190,13 @@ attlist.table &=
attribute sort { text }?,
attribute filter { text }?,
attribute tag { text }?
database = element database { attlist.database, (key | \include)* }
attlist.database &=
attribute name { text },
attribute primekeys { text }?,
attribute file { text }?,
attribute filter { text }?,
attribute tag { text }?
syslog = element syslog { attlist.syslog, (key | \include)* }
attlist.syslog &=
attribute name { text },
Expand Down
13 changes: 13 additions & 0 deletions contrib/schema/jube.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="use" type="stringTagType" />
<xs:element name="table" type="tableType" />
<xs:element name="database" type="databaseType" />
<xs:element name="syslog" type="syslogType" />
<xs:element name="include" type="includeType" />
</xs:choice>
Expand All @@ -239,6 +240,18 @@
<xs:attribute name="tag" type="xs:string" use="optional" />
</xs:complexType>

<xs:complexType name="databaseType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="key" type="stringTagType" />
<xs:element name="include" type="includeType" />
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="primekeys" type="xs:string" use="optional" />
<xs:attribute name="file" type="xs:string" use="optional" />
<xs:attribute name="filter" type="xs:string" use="optional" />
<xs:attribute name="tag" type="xs:string" use="optional" />
</xs:complexType>

<xs:complexType name="syslogType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="key" type="columnType" />
Expand Down

0 comments on commit fdc2c11

Please sign in to comment.