(no commit message)
[sfa.git] / sfatables / matches / hrn.xml
1 <!-- 
2 "sfa-input" specifies the subset of the requestor context that this match needs to see. It is specified as an xpath expression.
3 For this simple match, we just need to look at sfa-input. 
4
5 "rule" specifies an xpath/xquery expression that evaluates the match. In this case, we just check if the requestor's HRN is the same
6 as the one matched by this rule.
7
8 -->
9
10 <match name="hrn">
11     <!-- Empty context. We _always_ get the hrn of the current user -->
12     <context select="//sfa/current/user@hrn"/>
13     <rule>
14         <argument>
15             <name>user-hrn</name>
16             <help>HRN of the user requesting resouces</help>
17             <operand>HRN</operand>
18         </argument>
19     </rule>
20     <processor filename="hrn.xsl"/>
21 </match>