Subject:Is there a way to format a number to force two decimal places? Author:Vincent Visconti Date:14 Jan 2010 12:18 PM
My XML document is invalidated because the schema requires a number with two decimal positions.
Below is an excerpt from my xquery code:
<t5:MontantCaseO>{number($PRL1DTLR00/XDROTHINC)}</t5:MontantCaseO>
and the error message I receive:
v:\My Documents\RL1XMLProject\xml\MergeRL1_2010_test_.xml:1,13389: value '31.5' does not match regular expression facet '\d{1,7}\.\d{2}|\d{1,7},\d{2}'
On a side note: Is there a comprehensive reference for xQuery? I'm finding it impossible to find solutions on my own and it's very frustrating.