xsl-list
[Top] [All Lists]

using fn:max with Saxon 7.4 ?

2003-04-22 07:29:41
Can some please help me with using the new XPath 2.0 functions in Saxon 7.4?

When I try the transformation detailed below I get the following error:

"Unknown function fn:min". The other day Saxon was telling me it did not recognise the fn namespace, although I can't reproduce that now.

Apologies if this problem has been explained many times over - I've been off-list for quite a while and didn't have any luck with the archives.

cheers

Malcolm

XML:

<?xml version="1.0" encoding="UTF-8"?>
<numbers>
        <number>3</number>
        <number>5</number>
        <number>10</number>
        <number>1</number>
</numbers>

XSLT:

<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:fn="http://www.w3.org/2002/11/xquery-functions"; xmlns:saxon="http://saxon.sf.net/"; version="2.0">
        <xsl:template match="/">
                <max>
                        <xsl:value-of select="fn:max(numbers/number)"/>
                        <!-- this works of course..
                        <xsl:value-of select="saxon:max(numbers/number)"/>
                        -->
                </max>
        </xsl:template>
</xsl:transform>




_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>