How to use new output format ?

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

How to use new output format ?

ricetrac
Hello,
 
In orbeon 3.7.1 nightly build (20100205), I notice this in properties-xforms.xml file :

<!-- TODO: new output formats depending on language; also support short/medium/long/full? -->

<property as="xs:string" name="oxf.xforms.format.output.*.*.date" value="if (. castable as xs:date) then format-date(xs:date(.), '[FNn] [MNn] [D], [Y] [ZN]', 'en', (), ()) else ."/>

<property as="xs:string" name="oxf.xforms.format.output.*.*.dateTime" value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[FNn] [MNn] [D], [Y] [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>

<property as="xs:string" name="oxf.xforms.format.output.fr.*.date" value="if (. castable as xs:date) then format-date(xs:date(.), '[FNn] [D] [Mn] [Y]', 'fr', (), ()) else ."/>

<property as="xs:string" name="oxf.xforms.format.output.fr.*.dateTime" value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[FNn] [D] [Mn] [Y] [H01]:[m01]:[s01]', 'fr', (), ()) else ."/>

...

And this :

<!-- TODO: remove these older formats when new formats above are supported -->

<property as="xs:string" name="oxf.xforms.format.output.date" value="if (. castable as xs:date) then format-date(xs:date(.), '[FNn] [MNn] [D], [Y] [ZN]', 'en', (), ()) else ."/>

<property as="xs:string" name="oxf.xforms.format.output.dateTime" value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[FNn] [MNn] [D], [Y] [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>

...

So, how to use the new format ? It is not supported now ?

Thank you.

Julien Bittard.

Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

--
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
Reply | Threaded
Open this post in threaded view
|

RE: How to use new output format ?

ricetrac
Nobody ?
 


De : Bittard, Julien [mailto:[hidden email]]
Envoyé : lundi 15 février 2010 19:03
À : [hidden email]
Objet : [ops-users] How to use new output format ?

Hello,
 
In orbeon 3.7.1 nightly build (20100205), I notice this in properties-xforms.xml file :

<!-- TODO: new output formats depending on language; also support short/medium/long/full? -->

<property as="xs:string" name="oxf.xforms.format.output.*.*.date" value="if (. castable as xs:date) then format-date(xs:date(.), '[FNn] [MNn] [D], [Y] [ZN]', 'en', (), ()) else ."/>

<property as="xs:string" name="oxf.xforms.format.output.*.*.dateTime" value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[FNn] [MNn] [D], [Y] [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>

<property as="xs:string" name="oxf.xforms.format.output.fr.*.date" value="if (. castable as xs:date) then format-date(xs:date(.), '[FNn] [D] [Mn] [Y]', 'fr', (), ()) else ."/>

<property as="xs:string" name="oxf.xforms.format.output.fr.*.dateTime" value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[FNn] [D] [Mn] [Y] [H01]:[m01]:[s01]', 'fr', (), ()) else ."/>

...

And this :

<!-- TODO: remove these older formats when new formats above are supported -->

<property as="xs:string" name="oxf.xforms.format.output.date" value="if (. castable as xs:date) then format-date(xs:date(.), '[FNn] [MNn] [D], [Y] [ZN]', 'en', (), ()) else ."/>

<property as="xs:string" name="oxf.xforms.format.output.dateTime" value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[FNn] [MNn] [D], [Y] [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>

...

So, how to use the new format ? It is not supported now ?

Thank you.

Julien Bittard.

Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schtzen. / Por favor ajude a Logica a respeitar o ambiente no imprimindo este correio electrnico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

--
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
Reply | Threaded
Open this post in threaded view
|

Re: How to use new output format ?

Erik Bruchez
Administrator
In reply to this post by ricetrac
Julien,

Mmh, looking at the code, it seems that this hasn't been implemented yet!

Here is where the code was meant to be plugged:

http://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/xforms/control/XFormsValueControl.java

See method getValueUseFormat().

-Erik

On Mon, Feb 15, 2010 at 10:02 AM, Bittard, Julien
<[hidden email]> wrote:

> Hello,
>
> In orbeon 3.7.1 nightly build (20100205), I notice this in
> properties-xforms.xml file :
>
> <!--
>
> TODO: new output formats depending on language; also support
> short/medium/long/full? -->
>
> <property as="xs:string" name="oxf.xforms.format.output.*.*.date" value="if
> (. castable as xs:date) then format-date(xs:date(.), '[FNn] [MNn] [D], [Y]
> [ZN]', 'en', (), ()) else ."/>
>
> <property as="xs:string" name="oxf.xforms.format.output.*.*.dateTime"
> value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.),
> '[FNn] [MNn] [D], [Y] [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
>
> <property
>
> as="xs:string" name="oxf.xforms.format.output.fr.*.date" value="if (.
> castable as xs:date) then format-date(xs:date(.), '[FNn] [D] [Mn] [Y]',
> 'fr', (), ()) else ."/>
>
> <property as="xs:string" name="oxf.xforms.format.output.fr.*.dateTime"
> value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.),
> '[FNn] [D] [Mn] [Y] [H01]:[m01]:[s01]', 'fr', (), ()) else ."/>
>
> ...
>
> And this :
>
> <!--
>
> TODO: remove these older formats when new formats above are supported -->
>
> <property as="xs:string" name="oxf.xforms.format.output.date" value="if (.
> castable as xs:date) then format-date(xs:date(.), '[FNn] [MNn] [D], [Y]
> [ZN]', 'en', (), ()) else ."/>
>
> <property as="xs:string" name="oxf.xforms.format.output.dateTime" value="if
> (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[FNn]
> [MNn] [D], [Y] [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
>
> ...
>
> So, how to use the new format ? It is not supported now ?
>
> Thank you.
>
> Julien Bittard.
> Please help Logica to respect the environment by not printing this email /
> Pour contribuer comme Logica au respect de l'environnement, merci de ne pas
> imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen
> Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a
> respeitar o ambiente não imprimindo este correio electrónico. This e-mail
> and any attachment is for authorised use by the intended recipient(s) only.
> It may contain proprietary material, confidential information and/or be
> subject to legal privilege. It should not be copied, disclosed to, retained
> or used by, any other party. If you are not an intended recipient then
> please promptly delete this e-mail and any attachment and all copies and
> inform the sender. Thank you.
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

RE: Re: How to use new output format ?

ricetrac
Ok, thank you.
 

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]] De la part de Erik Bruchez
Envoyé : vendredi 19 février 2010 05:06
À : [hidden email]
Objet : [ops-users] Re: How to use new output format ?

Julien,

Mmh, looking at the code, it seems that this hasn't been implemented yet!

Here is where the code was meant to be plugged:

http://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/xforms/control/XFormsValueControl.java

See method getValueUseFormat().

-Erik

On Mon, Feb 15, 2010 at 10:02 AM, Bittard, Julien <[hidden email]> wrote:

> Hello,
>
> In orbeon 3.7.1 nightly build (20100205), I notice this in
> properties-xforms.xml file :
>
> <!--
>
> TODO: new output formats depending on language; also support
> short/medium/long/full? -->
>
> <property as="xs:string" name="oxf.xforms.format.output.*.*.date"
> value="if (. castable as xs:date) then format-date(xs:date(.), '[FNn]
> [MNn] [D], [Y] [ZN]', 'en', (), ()) else ."/>
>
> <property as="xs:string" name="oxf.xforms.format.output.*.*.dateTime"
> value="if (. castable as xs:dateTime) then
> format-dateTime(xs:dateTime(.), '[FNn] [MNn] [D], [Y]
> [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
>
> <property
>
> as="xs:string" name="oxf.xforms.format.output.fr.*.date" value="if (.
> castable as xs:date) then format-date(xs:date(.), '[FNn] [D] [Mn]
> [Y]', 'fr', (), ()) else ."/>
>
> <property as="xs:string" name="oxf.xforms.format.output.fr.*.dateTime"
> value="if (. castable as xs:dateTime) then
> format-dateTime(xs:dateTime(.), '[FNn] [D] [Mn] [Y]
> [H01]:[m01]:[s01]', 'fr', (), ()) else ."/>
>
> ...
>
> And this :
>
> <!--
>
> TODO: remove these older formats when new formats above are supported
> -->
>
> <property as="xs:string" name="oxf.xforms.format.output.date" value="if (.
> castable as xs:date) then format-date(xs:date(.), '[FNn] [MNn] [D],
> [Y] [ZN]', 'en', (), ()) else ."/>
>
> <property as="xs:string" name="oxf.xforms.format.output.dateTime"
> value="if (. castable as xs:dateTime) then
> format-dateTime(xs:dateTime(.), '[FNn] [MNn] [D], [Y]
> [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
>
> ...
>
> So, how to use the new format ? It is not supported now ?
>
> Thank you.
>
> Julien Bittard.
> Please help Logica to respect the environment by not printing this
> email / Pour contribuer comme Logica au respect de l'environnement,
> merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht
> nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /
> Por favor ajude a Logica a respeitar o ambiente não imprimindo este
> correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only.
> It may contain proprietary material, confidential information and/or
> be subject to legal privilege. It should not be copied, disclosed to,
> retained or used by, any other party. If you are not an intended
> recipient then please promptly delete this e-mail and any attachment
> and all copies and inform the sender. Thank you.
>
> --
> 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
>
>
Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




--
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