Subject: RE: [xsl] using fn:max with Saxon 7.4 ? From: "malcolm macaulay" <malcolm_xslt_list@xxxxxxxxxxx> Date: Wed, 23 Apr 2003 03:17:02 +1200 |
At present, Saxon implements all the standard functions in the null namespace. Just use max() without a namespace prefix.
Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx
> -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > malcolm macaulay > Sent: 22 April 2003 15:30 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] 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 >
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] using fn:max with Saxon 7, Michael Kay | Thread | [xsl] xslt query a data, Paul |
RE: [xsl] I have the XSLT, now need, Betty Harvey | Date | RE: RE: Subject: [xsl] Seeking meth, Gary Cornelius |
Month |