|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] using fn:max with Saxon 7.4 ?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








