This post was updated on .
Hi,
I am trying obtain epoch unix timestamp using seconds from seconds-from-dateTime(now()) in Orbeon 3.9.0.201105152046 CE not working and showing following error.
XPath syntax error at char 47 in {...seconds-from-dateTime(now()...}: Cannot find a matching 1-argument function named {http://orbeon.org/oxf/xml/xforms}seconds-from-dateTime()
But above one is working with 3.8 properly. would like to know, how to obtain seconds from current time using orbeon 3.9.
Sample code is below
--------------
<%@page contentType="text/html" import="java.util.*" %>
<%
System.out.println("stage1");
System.out.println(" teste "+request.getParameter("params")+ " session "+session.getAttribute("param"));
%>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<head>
Enter your first name, and last name. Output First Name: Output Last Name: Note that as you type the model output will be updated. </body> </html> |
Administrator
|
See this part of the doc first (I just updated it to describe the
difference between the two functions): http://wiki.orbeon.com/forms/doc/developer-guide/xpath-2-0-support#TOC-XForms-seconds-from-dateTime-function So if you just want the seconds from the current time, just write: seconds-from-dateTime(current-dateTime()) -Erik On Sat, May 5, 2012 at 10:25 AM, lakshmipmandava <[hidden email]> wrote: > Hi, I am trying obtain seconds from seconds-from-dateTime(now()) in Orbeon > 3.9.0.201105152046 CE not working and showing following error. XPath syntax > error at char 47 in {...seconds-from-dateTime(now()...}: Cannot find a > matching 1-argument function named > {http://orbeon.org/oxf/xml/xforms}seconds-from-dateTime() But above one is > working with 3.8 properly. would like to know, how to obtain seconds from > current time using orbeon 3.9. Sample code is below -------------- <%@page > contentType="text/html" import="java.util.*" %> <% > System.out.println("stage1"); System.out.println(" teste > "+request.getParameter("params")+ " session > "+session.getAttribute("param")); %> <html > xmlns="http://www.w3.org/1999/xhtml" > xmlns:xf="http://www.w3.org/2002/xforms" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xs="http://www.w3.org/2001/XMLSchema"> <head> </head> <body> > > Enter your first name, and last name. > > Input First-Name: Also known as given name. > Input Last Name: Also known as sur name or family name. > > Output First Name: > Output Last Name: sdfsfdfsf Output nowtime: > > Note that as you type the model output will be updated. > > </body> </html> > ________________________________ > View this message in context: trying obtain seconds-from-dateTime(now()) > Orbeon 3.9.0.201105152046 CE not working > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |