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
These files bridge sfatables with sfa. They let sfa load rules and apply them to...
[sfa.git]
/
sfatables
/
matches
/
hrn.xsl
diff --git
a/sfatables/matches/hrn.xsl
b/sfatables/matches/hrn.xsl
index
3781b43
..
29988a5
100644
(file)
--- a/
sfatables/matches/hrn.xsl
+++ b/
sfatables/matches/hrn.xsl
@@
-1,22
+1,17
@@
<?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:template match="//rspec-match">
- <xsl:variable name="result">
- <xsl:for-each select="//rspec-match/context-input//user">
- <xsl:variable name="context-hrn" select="hrn"/>
- <xsl:for-each select="//rspec-match/rule-input//user">
+ <xsl:variable name="context-hrn" select="hrn"/>
+ <xsl:template match="user">
<xsl:choose>
<xsl:when test="starts-with($context-hrn, hrn)">
<xsl:choose>
<xsl:when test="starts-with($context-hrn, hrn)">
- True
+ True
<!--Match -->
</xsl:when>
<xsl:otherwise>
</xsl:when>
<xsl:otherwise>
- False
+ False
<!-- No match -->
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:variable>
<xsl:value-of select="$result"/>
</xsl:template>
<xsl:value-of select="$result"/>
</xsl:template>
+
</xsl:stylesheet>
</xsl:stylesheet>