git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified a processor to conform to the XML schema of match parameters.
[sfa.git]
/
sfatables
/
processors
/
hrn.xsl
diff --git
a/sfatables/processors/hrn.xsl
b/sfatables/processors/hrn.xsl
index
426c5fd
..
47a8b62
100644
(file)
--- a/
sfatables/processors/hrn.xsl
+++ b/
sfatables/processors/hrn.xsl
@@
-1,7
+1,7
@@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:variable name="context-hrn" select="//request-context//hrn"/>
+ <xsl:variable name="context-hrn" select="//request-context/
sfa/user
/hrn"/>
<!-- Magic sauce -->
<!-- Magic sauce -->
@@
-9,9
+9,10
@@
<xsl:apply-templates select="@* | node()"/>
</xsl:template>
<xsl:apply-templates select="@* | node()"/>
</xsl:template>
- <xsl:template match="//request-context//user">
+ <xsl:template match="//match-context/argument[name='user-hrn']">
+ <xsl:value-of select="hrn"/>
<xsl:choose>
<xsl:choose>
- <xsl:when test="starts-with($context-hrn,
hrn
)">
+ <xsl:when test="starts-with($context-hrn,
value
)">
<result verdict="True"/> <!--Match -->
</xsl:when>
<xsl:otherwise>
<result verdict="True"/> <!--Match -->
</xsl:when>
<xsl:otherwise>