a little nicer wrt pep8
[sfa.git] / sfatables / processors / restrict_to_nodes.xsl
index 2ecba22..12ff4cd 100644 (file)
@@ -9,8 +9,8 @@
         </xsl:copy>
     </xsl:template>
 
-    <xsl:variable name="whitelist_prefix" select="//rspec//rule/argument[name='whitelist']/value"/>
-    <xsl:variable name="blacklist_prefix" select="//rspec//rule/argument[name='blacklist']/value"/>
+    <xsl:variable name="whitelist_prefix" select="//RSpec//target-context/argument[name='whitelist']/value"/>
+    <xsl:variable name="blacklist_prefix" select="//RSpec//target-context/argument[name='blacklist']/value"/>
 
     <!-- Drop nodes that are not in the whitelist -->
     <xsl:template match="node">
@@ -22,5 +22,4 @@
             </xsl:choose>
     </xsl:template>
 
-    <xsl:template match="sfatables-input"/>
 </xsl:stylesheet>