template math:min
"Sterzl Christian" <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
Hello
If I am using the template math.min it produces only NaN.
But if I am using instead just an odd variable like
<xsl:variable name="minTime">
<xsl:variable name="nodes" select="../sampleResult[@label =
current()/@label]/@time" />
<xsl:choose>
<xsl:when test="not($nodes)">NaN</xsl:when>
<xsl:otherwise>
<xsl:for-each select="$nodes">
<xsl:sort data-type="number" order="ascending" />
<xsl:if test="position() = 1">
<xsl:value-of select="number(.)" />
</xsl:if>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
This is pretty much the same as math.min. It produces the right output.
My call to math.min looks as follows:
<xsl:variable name="minTime">
<xsl:call-template name="min">
<xsl:with-param name="nodes" select="../sampleResult[@label =
current()/@label]/@time" />
</xsl:call-template>
</xsl:variable>
This produces just NaN.
Whats wrong? I read a lot about the math.min function, but I just don't
get it.
I am thankful for any ideas, cause my xsl is getting really long and I
wanna avoid any unneccessary code.
regards chris
_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list