1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <!-- Magic sauce copied from a manual. This fragment basically copies everything except for
4 stuff that explicitly matches with the templates defined below. In the case of such a match,
5 the matched node is treated differently.-->
6 <xsl:template match="@* | node()">
8 <xsl:apply-templates select="@* | node()"/>
11 <!-- End of magic sauce -->
13 <!-- Read in the value of the argument. See 'example_vini_rspec.xml' for an example of such an argument -->
14 <xsl:variable name="max-link-bandwidth" select="//rspec//rule-context/argument[name='max-link-bandwidth']/value"/>
16 <!-- Drop Linkspecs for which bw > max-link-bandwidth -->
17 <xsl:template match="LinkSpec">
19 <xsl:when test="bw < $max-link-bandwidth">
20 <xsl:copy-of select="."/>
26 <xsl:template match="sfatables-input"/>