a little nicer wrt pep8
[sfa.git] / sfatables / matches / hrn.xml
index a931927..14bc26e 100644 (file)
@@ -1,21 +1,19 @@
 <!-- 
-"sfa-input" specifies the subset of the requestor context that this match needs to see. It is specified as an xpath expression.
+"context" specifies the subset of the requestor context that this match needs to see. It is specified as an xpath expression.
 For this simple match, we just need to look at sfa-input. 
 
-"rule" specifies an xpath/xquery expression that evaluates the match. In this case, we just check if the requestor's HRN is the same
-as the one matched by this rule.
-
+"rule" specifies a set of arguments that the match accepts.
 -->
 
 <match name="hrn">
     <!-- Empty context. We _always_ get the hrn of the current user -->
+    <rule element='*'>
     <context select="//sfa/current/user@hrn"/>
-    <rule>
         <argument>
             <name>user-hrn</name>
             <help>HRN of the user requesting resouces</help>
             <operand>HRN</operand>
         </argument>
-    </rule>
     <processor filename="hrn.xsl"/>
+    </rule>
 </match>