Open steven-legg opened 2 months ago
The XPath test for a non-empty sequence is called "exists". The test is analogous to an LDAP present match.
Just a suggestion: I'm ok with this, but considering there is the alternative with the bag-size function, should we rather specify these shortcut functions as optional / not mandatory? Part of a profile?
I regularly need to test whether a bag of values (usually from an attribute designator) is empty or non-empty. With the current XACML functions that means comparing the bag size to zero.
There would be less clutter if there were shortcut functions to perform these tests, which could be added to both XACML 3.0 and XACML 4.0 .
An alternative name for non-empty-bag would be populated-bag. It would be a simple matter to define a pair of functions that take bags of any data type rather than a pair for each data-type.