Hi Jocelyn,
format-date is XSLT-specific function (
http://www.w3.org/TR/xslt20/#function-format-date). Sedna supports functions
defined here: http://www.w3.org/TR/xpath-functions/ .
Ivan Shcheklein,
Sedna Team
On Fri, Sep 24, 2010 at 6:17 PM, Raymond, Jocelyn wrote:
> Hi Sedna Team,
> Does sedna support format-date function?
>
> When I try the following using se_term, it doesn't work.
>
> (: declare namespace fn="http://www.w3.org/2005/xpath-functions"; :)
> let $d := xs:date('2010-09-03')
> return format-date($d,'[Y0001]-[M01]-[D01]')
>
>
> I have tried with fn: prefix along uncommenting the declare namespace, I
> have tried with xs: prefix etc...
>
> The error I get is:
> SEDNA Message: ERROR XPST0017
> It is a static error if the expanded QName and number of arguments in a
> function call do not match the name and arity of a function signature in
> the static context.
> Details: at (2:8), unknown function
> {http://www.w3.org/2001/XMLSchema}format-date/2
>
> I am using sedna 3.2.91.
>
> Thank you,
> Jocelyn Raymond
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion