Moved xslt extensions to processors/
[sfa.git] / sfatables / processors / hrn.xsl
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <xsl:stylesheet version="1.0"
3     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4     <xsl:variable name="context-hrn" select="hrn"/>
5     <xsl:template match="user">
6                     <xsl:choose>
7                     <xsl:when test="starts-with($context-hrn, hrn)">
8                         True <!--Match -->
9                     </xsl:when>
10                     <xsl:otherwise>
11                         False <!-- No match -->
12                     </xsl:otherwise>
13                 </xsl:choose>
14         <xsl:value-of select="$result"/>
15     </xsl:template>
16
17 </xsl:stylesheet>