Hi all,
I'm trying to make a XACML that could filter right access on the Alternate IDs field of each datastream... but it don't work. I think that the value of the alternative ID is not the one I attempt. In the following example, the filter should return TRUE if the alternative ID field is not "public". I don't think my problem comes from the global XACML because it works when I report the logic in the state field (return TRUE if the state is I).

     <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:not">
<Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string";>public</AttributeValue> <!-- <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string";>I</AttributeValue> --> <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"> <ResourceAttributeDesignator AttributeId="urn:fedora:names:fedora:2.1:resource:datastream:altIds" DataType="http://www.w3.org/2001/XMLSchema#string"/> <!-- <ResourceAttributeDesignator AttributeId="urn:fedora:names:fedora:2.1:resource:datastream:state" DataType="http://www.w3.org/2001/XMLSchema#string"/> -->
         </Apply>
       </Apply>
     </Apply>

I also tried to use the Format URI field but I have the same problem as the Alternate IDs field. I also tried to use a regular expression... but I didn't get a bettre result. Does someone already use urn:fedora:names:fedora:2.1:resource:datastream:altIds in his XACML? Or does anyone knows why it doesn't work as I want?

Thanks and greetings
Pierre-Yves

<<attachment: pierre-yves_jallud.vcf>>

------------------------------------------------------------------------------
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to