Example: using XACML eXist-db integration
Policies and configuration files: http://anonsvn.jboss.org/repos/jbossas/projects/security/security-xacml-existdb/trunk/xacml-existdb/src/test/resources/attrib/ Test harness code: http://anonsvn.jboss.org/repos/jbossas/projects/security/security-xacml-existdb/trunk/xacml-existdb/src/test/java/org/jboss/test/security/xacml/existdb/tests/ExistAttributeUnitTestCase.java