xxforms:format on xforms:input not working ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xxforms:format on xforms:input not working ?

npujol73
Hi,

  I am trying to get the xxforms:format to work on an input field. Works great on an xforms:output. I am on 3.7 nightly build dev-post-3.7.1.200910230248 in a separate deployment configuration.

Here is my field:

<xforms:input ref="instance('data')/field1"  xxforms:format="format-date(xs:date(.), '[MNn], [Y]', 'en', (), ())">
                                <xforms:label>Section1: field1</xforms:label>
</xforms:input>

Here is my bind

     <xforms:bind  nodeset="instance('data')/field1"  type="xs:date" />

This is not working. My input field still displaying something like 10/1/2009
 User error ?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: xxforms:format on xforms:input not working ?

Alessandro  Vernet
Administrator
Yes, xxforms:format only works for outputs. There is an other property  
to set the format of the date input fields (i.e. xforms:input bound to  
a node of type xs:date), but it gives you less flexibility in the  
format that can be used.

Alex



On Nov 22, 2009, at 2:20 PM, npujol73 <[hidden email]> wrote:

>
> Hi,
>
>  I am trying to get the xxforms:format to work on an input field.  
> Works
> great on an xforms:output. I am on 3.7 nightly build
> dev-post-3.7.1.200910230248 in a separate deployment configuration.
>
> Here is my field:
>
> <xforms:input ref="instance('data')/field1"
> xxforms:format="format-date(xs:date(.), '[MNn], [Y]', 'en', (), ())">
>                                <xforms:label>Section1:
> field1</xforms:label>
> </xforms:input>
>
> Here is my bind
>
>     <xforms:bind  nodeset="instance('data')/field1"  type="xs:date" />
>
> This is not working. My input field still displaying something like
> 10/1/2009
> User error ?
>
> Thanks
> --
> View this message in context: http://n4.nabble.com/xxforms-format-on-xforms-input-not-working-tp747940p747940.html
> Sent from the ObjectWeb 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet