Négation d'une valeur booléenne.
<?xml version="1.0" encoding="UTF-8"?> <RuleSet name="Example_not" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://www.curamsoftware.com/CreoleRulesSchema.xsd"> <Class name="Person"> <Attribute name="isLivingInUSA"> <type> <javaclass name="Boolean"/> </type> <derivation> <!-- Notez que cela est quelque peu artificiel. --> <not> <reference attribute="isLivingOutsideUSA"/> </not> </derivation> </Attribute> <Attribute name="isLivingOutsideUSA"> <type> <javaclass name="Boolean"/> </type> <derivation> <not> <equals> <reference attribute="country"/> <String value="USA"/> </equals> </not> </derivation> </Attribute> <!-- Pays dans lequel réside cette personne. --> <Attribute name="country"> <type> <javaclass name="String"/> </type> <derivation> <specified/> </derivation> </Attribute> </Class> </RuleSet>