<xforms:setvalue ref="/order-desk/cart-items/cart-item[last()]/thru-date" value="substring(abcdefg,1,4)"/>
This shows that a function call is valid as an xpath expression (something I was not certain of). However, this next fragment, which is what I need, fails with the error listed below.
<xforms:setvalue ref="/order-desk/cart-items/cart-item[last()]/thru-date" value="now()"/>
class org.dom4j.XPathException
Message: Exception occurred evaluting XPath: string(now()). Exception: Function :now
a) I tried setting 'value=string(now())', but got the same result. b) I found an example at http://safariexamples.informit.com/0321154991/bookse42.html#x80-1630006.5 which indicates that the above usage of now should be valid in setvalue.
Question -------- 1. How can I obtain and store the current date as a string into a form?
-- Bill Winspur Manager, Wynnon Systems Inc Mobile: 403-519-5889
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
