Some initial plumbing for sfatables
[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 xmlns="http://www.planet-lab.org/sfa/sfatables/match/2009/8">
11     <sfa-input>
12         //request/user/hrn
13     </sfa-input>
14
15     <rule>
16         (//request/user/hrn eq //current/usr/hrn)
17     </rule>
18 </match>