Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] add group xml and rng file to define groups of persons
- Loading branch information
1 parent
66ffe4b
commit a58f40d
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<grammar ns="http://buildservice.org/api" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> | ||
|
||
<start> | ||
<ref name="group-element"/> | ||
</start> | ||
|
||
<define ns="" name="group-element"> | ||
<element name="group"> | ||
<element name="title"><text/></element> | ||
<element name="person"> <!-- FIXME3.0: should be plural --> | ||
<zeroOrMore> | ||
<element name="person"> | ||
<attribute name="userid"> | ||
<data type="string" /> | ||
</attribute> | ||
<empty/> | ||
</element> | ||
</zeroOrMore> | ||
</element> | ||
<empty/> | ||
</element> | ||
</define> | ||
|
||
</grammar> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<group> | ||
<title>review-team</title> | ||
<person> | ||
<person userid="Iggy"/> | ||
<person userid="king"/> | ||
</person> | ||
</group> |