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
- make matches and targets loaded w/o making hem python packages
[sfa.git]
/
sfatables
/
processors
/
hrn.xsl
diff --git
a/sfatables/processors/hrn.xsl
b/sfatables/processors/hrn.xsl
index
29988a5
..
318739a
100644
(file)
--- a/
sfatables/processors/hrn.xsl
+++ b/
sfatables/processors/hrn.xsl
@@
-1,17
+1,23
@@
<?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="hrn"/>
+ <xsl:variable name="context-hrn" select="//request-context//hrn"/>
+
+ <!-- Magic sauce -->
+
+ <xsl:template match="@* | node()">
+ <xsl:apply-templates select="@* | node()"/>
+ </xsl:template>
+
<xsl:template match="user">
<xsl:choose>
<xsl:when test="starts-with($context-hrn, hrn)">
<xsl:template match="user">
<xsl:choose>
<xsl:when test="starts-with($context-hrn, hrn)">
-
True
<!--Match -->
+
<result verdict="True"/>
<!--Match -->
</xsl:when>
<xsl:otherwise>
</xsl:when>
<xsl:otherwise>
-
False
<!-- No match -->
+
<result verdict="False"/>
<!-- No match -->
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
- <xsl:value-of select="$result"/>
</xsl:template>
</xsl:stylesheet>
</xsl:template>
</xsl:stylesheet>