How do I eliminate the scientific notation like 1.0E6 Although I use xxforms:format="format-number(., '###,##0')", xml data still stay scientific notation not 1000000 <html xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns="http://www.w3.org/1999/xhtml"> <head> <xforms:model> <xforms:instance> <value>10</value> </xforms:instance> <xforms:bind nodeset="." type="xs:integer" calculate=". * 10" readonly="false()" /> </xforms:model> </head> <body> <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/> <xforms:input ref="."> <xforms:label /> </xforms:input> <p /> <xforms:output ref="." xxforms:format="format-number(., '###,##0')"> <xforms:label /> </xforms:output> </body> </html> Jack -- 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 |
Administrator
|
I don't reproduce this. Here is what I see with your example and a
recent build: http://skitch.com/ebruchez/bgwi6/orbeon-forms-example-applications-untitled -Erik On Mar 1, 2009, at 11:00 PM, tayjack wrote: > <html xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns="http://www.w3.org/1999/xhtml"> > <head> > <xforms:model> > <xforms:instance> > <value>10</value> > </xforms:instance> > <xforms:bind nodeset="." type="xs:integer" calculate=". * 10" > readonly="false()" /> > </xforms:model> > </head> > <body> > <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget > "/> > <xforms:input ref="."> > <xforms:label /> > </xforms:input> > <p /> > <xforms:output ref="." xxforms:format="format-number(., > '###,##0')"> > <xforms:label /> > </xforms:output> > </body> > </html> 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
When the number greater than 1000000 Jack -----Original Message----- From: Erik Bruchez <[hidden email]> Reply-to: [hidden email] To: [hidden email] Subject: [ops-users] Re: how to eliminate scientific notation Date: Mon, 2 Mar 2009 15:48:12 -0800 I don't reproduce this. Here is what I see with your example and a recent build: http://skitch.com/ebruchez/bgwi6/orbeon-forms-example-applications-untitled -Erik On Mar 1, 2009, at 11:00 PM, tayjack wrote: > <html xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns="http://www.w3.org/1999/xhtml"> > <head> > <xforms:model> > <xforms:instance> > <value>10</value> > </xforms:instance> > <xforms:bind nodeset="." type="xs:integer" calculate=". * 10" > readonly="false()" /> > </xforms:model> > </head> > <body> > <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget > "/> > <xforms:input ref="."> > <xforms:label /> > </xforms:input> > <p /> > <xforms:output ref="." xxforms:format="format-number(., > '###,##0')"> > <xforms:label /> > </xforms:output> > </body> > </html> Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ plain text document attachment (message-footer.txt) -- 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 |
Does somebody know why the number greater than 1000000 would be
scientific notation. I use XML schema to validate my form, the type is xs:nonNegativeInteger. Because scientific notation like 1.0E6 cause validation failure. Jack -----Original Message----- From: tayjack <[hidden email]> Reply-to: [hidden email] To: [hidden email] Subject: [ops-users] Re: how to eliminate scientific notation Date: Tue, 03 Mar 2009 08:29:32 +0800 When the number greater than 1000000 Jack -----Original Message----- From: Erik Bruchez <[hidden email]> Reply-to: [hidden email] To: [hidden email] Subject: [ops-users] Re: how to eliminate scientific notation Date: Mon, 2 Mar 2009 15:48:12 -0800 I don't reproduce this. Here is what I see with your example and a recent build: http://skitch.com/ebruchez/bgwi6/orbeon-forms-example-applications-untitled -Erik On Mar 1, 2009, at 11:00 PM, tayjack wrote: > <html xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns="http://www.w3.org/1999/xhtml"> > <head> > <xforms:model> > <xforms:instance> > <value>10</value> > </xforms:instance> > <xforms:bind nodeset="." type="xs:integer" calculate=". * 10" > readonly="false()" /> > </xforms:model> > </head> > <body> > <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget > "/> > <xforms:input ref="."> > <xforms:label /> > </xforms:input> > <p /> > <xforms:output ref="." xxforms:format="format-number(., > '###,##0')"> > <xforms:label /> > </xforms:output> > </body> > </html> Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ plain text document attachment (message-footer.txt) -- 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 plain text document attachment (message-footer.txt) -- 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 |
Administrator
|
In reply to this post by tayjack-2
Jack,
On Mar 2, 2009, at 4:29 PM, tayjack wrote: > When the number greater than 1000000 This solves the problem: calculate="xs:decimal(.) * 10" Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Thankful for your reply.
Your suggestion solves my problem. Jack -----Original Message----- From: Alessandro Vernet <[hidden email]> Reply-to: [hidden email] To: [hidden email] Subject: [ops-users] Re: Re: how to eliminate scientific notation Date: Wed, 4 Mar 2009 17:09:07 -0800 This solves the problem: calculate="xs:decimal(.) * 10" Alex -- 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 |
Administrator
|
On Mar 4, 2009, at 6:51 PM, tayjack wrote:
> Thankful for your reply. > > Your suggestion solves my problem. Excellent. Thanks for the update. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |