-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: pengine: Support id-ref in nvpair with optional "name"
If "name" isn't specified, it inherits the name from the referenced nvpair.
- Loading branch information
Showing
4 changed files
with
63 additions
and
8 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
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
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,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- types: http://www.w3.org/TR/xmlschema-2/#dateTime --> | ||
<grammar xmlns="http://relaxng.org/ns/structure/1.0" | ||
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> | ||
<start> | ||
<ref name="element-nvset"/> | ||
</start> | ||
|
||
<define name="element-nvset"> | ||
<choice> | ||
<attribute name="id-ref"><data type="IDREF"/></attribute> | ||
<group> | ||
<attribute name="id"><data type="ID"/></attribute> | ||
<interleave> | ||
<optional> | ||
<externalRef href="rule.rng"/> | ||
</optional> | ||
<zeroOrMore> | ||
<element name="nvpair"> | ||
<choice> | ||
<group> | ||
<attribute name="id-ref"><data type="IDREF"/></attribute> | ||
<optional> | ||
<attribute name="name"><text/></attribute> | ||
</optional> | ||
</group> | ||
<group> | ||
<attribute name="id"><data type="ID"/></attribute> | ||
<attribute name="name"><text/></attribute> | ||
<optional> | ||
<attribute name="value"><text/></attribute> | ||
</optional> | ||
</group> | ||
</choice> | ||
</element> | ||
</zeroOrMore> | ||
<optional> | ||
<externalRef href="score.rng"/> | ||
</optional> | ||
</interleave> | ||
</group> | ||
</choice> | ||
</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