Alex,
The xforms:submission/@action attribute expects either a literal string
or an attribute value template (AVT), but not directly an XPath
expression as you wrote it here.
The correct syntax is closer to:
action="/sup/sup{format-dateTime(xs:dateTime(current-dateTime()),
'[Y0001][M01][D01]T[H01][m01][s01]', 'en', (), ())}.xml"
You would also have to provide a protocol, like "file:" or "oxf:".
However, at the moment Orbeon Forms doesn't support writing to "file:"
or "oxf:" protocols.
And note that if it did, the files would be written on the server, not
on the client.
-Erik
PIASER Alexandre wrote:
> Hello,
>
> I’m a newbie in xforms and xml.
>
> I’d like to save my data in a xml file with the date in the
> name.(ex : file 2007-05-07T12:00:00.xml)
>
> Is that possible?
>
> I have tried many things and that :
>
> <xforms:submission id="save-submission"
> ref="instance('Demande')"
> action="concat('/sup/sup',format-dateTime(xs:dateTime(current-dateTime()),
> '[Y0001][M01][D01]T[H01][m01][s01]', 'en', (), ()),'.xml')" method="put"
> replace="none">
>
> but I didn’t find the answer.
>
>
>
> Thanks,
>
>
>
> Alex
>
>
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws