git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
93d3b84
)
Change for new VINI RSpec format
author
Andy Bavier
<acb@cs.princeton.edu>
Mon, 25 Jan 2010 21:27:39 +0000
(21:27 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Mon, 25 Jan 2010 21:27:39 +0000
(21:27 +0000)
sfatables/processors/max_link_kbps.xsl
patch
|
blob
|
history
diff --git
a/sfatables/processors/max_link_kbps.xsl
b/sfatables/processors/max_link_kbps.xsl
index
1bf70db
..
7170fd8
100644
(file)
--- a/
sfatables/processors/max_link_kbps.xsl
+++ b/
sfatables/processors/max_link_kbps.xsl
@@
-15,7
+15,7
@@
<xsl:variable name="max-link-kbps" select="//RSpec//target-context/argument[name='max-link-kbps']/value"/>
<!-- Modify LinkSpecs for which kbps > max-link-kbps -->
<xsl:variable name="max-link-kbps" select="//RSpec//target-context/argument[name='max-link-kbps']/value"/>
<!-- Modify LinkSpecs for which kbps > max-link-kbps -->
- <xsl:template match="
LinkSpec
/kbps">
+ <xsl:template match="
vlink
/kbps">
<xsl:choose>
<xsl:when test=". > $max-link-kbps">
<kbps><xsl:value-of select="$max-link-kbps"/></kbps>
<xsl:choose>
<xsl:when test=". > $max-link-kbps">
<kbps><xsl:value-of select="$max-link-kbps"/></kbps>
@@
-27,7
+27,7
@@
</xsl:template>
<!-- Fill in missing kbps values -->
</xsl:template>
<!-- Fill in missing kbps values -->
- <xsl:template match="
LinkSpec
[not(kbps)]">
+ <xsl:template match="
vlink
[not(kbps)]">
<xsl:copy>
<xsl:copy-of select="@* | *"/>
<kbps><xsl:value-of select="$max-link-kbps"/></kbps>
<xsl:copy>
<xsl:copy-of select="@* | *"/>
<kbps><xsl:value-of select="$max-link-kbps"/></kbps>