Some initial plumbing for sfatables
[sfa.git] / sfatables / matches / hrn.xml
diff --git a/sfatables/matches/hrn.xml b/sfatables/matches/hrn.xml
new file mode 100644 (file)
index 0000000..a4473c8
--- /dev/null
@@ -0,0 +1,18 @@
+<!-- 
+"sfa-input" 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.
+
+-->
+
+<match xmlns="http://www.planet-lab.org/sfa/sfatables/match/2009/8">
+    <sfa-input>
+        //request/user/hrn
+    </sfa-input>
+
+    <rule>
+        (//request/user/hrn eq //current/usr/hrn)
+    </rule>
+</match>