Maybe a partial solution to that would be to revisit my suggestion on defining policy declaration schema, instead of the table and add an attribute to the FunctionDeclaration element, meaning can be used for matching ? That can not be used for XML based restriction though..