Attribute schema element should allow unique checks only within a particular
parent element
-------------------------------------------------------------------------------------------
Key: HIVEMIND-167
URL: http://issues.apache.org/jira/browse/HIVEMIND-167
Project: HiveMind
Type: Improvement
Components: framework
Reporter: Ben Tomasini
Priority: Minor
Currently, the unique attribute of the attribute schema element will verify
that the attribute is unique within the contributions.
Sometimes you need to guaratee uniqueness, but only within a partent element.
For instance, this set of rules:
<schema>
<element name="report">
<attribute name="id" required="true" unique="true" />
<element name="param">
<attribute name="id" required="true" unique="true"/>
</element>
</element>
</schema>
will error out on:
<report id="report1">
<param id="param1" />
<param id="param2" />
</report>
<report id="report1">
<param id="param1" />
</report>
It would be nice to guarantee that the above is allowed, while still
prohibiting the following:
<report id="report1">
<param id="param1" />
<param id="param2" />
</report>
<report id="report1">
<param id="param1" />
<param id="param1" />
</report>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]