Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] switch to relaxng for person schema, it does relax the element …
…order
- Loading branch information
1 parent
bf533c7
commit cbbbdd3
Showing
2 changed files
with
43 additions
and
41 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,43 @@ | ||
<?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="person-element"/> | ||
</start> | ||
|
||
<define ns="" name="person-element"> | ||
<element name="person"> | ||
<interleave> | ||
<element name="login"><text/></element> | ||
<optional> | ||
<element name="email"><text/></element> | ||
</optional> | ||
<optional> | ||
<element name="realname"><text/></element> | ||
</optional> | ||
<optional> | ||
<element name="state"><text/></element> | ||
</optional> | ||
<zeroOrMore> | ||
<element name="globalrole"><text/></element> | ||
</zeroOrMore> | ||
<optional> | ||
<element name="watchlist"> | ||
<zeroOrMore> | ||
<element name="project"> | ||
<attribute name="name"> | ||
<data type="string" /> | ||
</attribute> | ||
<empty/> | ||
</element> | ||
</zeroOrMore> | ||
</element> | ||
</optional> | ||
</interleave> | ||
<empty/> | ||
</element> | ||
</define> | ||
|
||
</grammar> | ||
|
This file was deleted.
Oops, something went wrong.