[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

using fn:max with Saxon 7.4 ?

Subject: using fn:max with Saxon 7.4 ?
From: "malcolm macaulay" <malcolm_xslt_list@xxxxxxxxxxx>
Date: Wed, 23 Apr 2003 02:29:41 +1200
fn max
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.