only delete the person from plc if he/she has site ids. If he/she doesnt it probably...
[sfa.git] / sfatables / targets / filternodes.xsl
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!-- This is an aggregate-specific target for the PL aggregate.
3      Its function is to drop nodes that do not match the user-specified pattern.
4 -->
5
6 <xsl:stylesheet version="1.0"
7     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
8     <xsl:template match="/">
9         <xsl:variable name="result">
10             <xsl:for-each select="//rspec-match/context-input//nodespec">
11                 <xsl:variable name="context-hostname" select="hostname"/>
12                 <xsl:for-each select="//rspec-match/rule-input//user">
13                     <xsl:choose>
14                     <xsl:when test="starts-with($context-hrn, hrn)">
15                         True
16                     </xsl:when>
17                     <xsl:otherwise>
18                         False
19                     </xsl:otherwise>
20                 </xsl:choose>
21                 </xsl:for-each>
22             </xsl:for-each>
23         </xsl:variable>
24         <xsl:value-of select="$result"/>
25     </xsl:template>
26 </xsl:stylesheet>