I've got problem with function format-number:
in my view.xsl i defined <xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/> .... <xforms:output ref="//somethingFloat" xxforms:format="format-number(.,'#,###.00','euro')"/> .... I've got an java.lang.ClassCastException org.orbeon.saxon.functions.FormatNumber2 checkArguments FormatNumber2.java 66 org.orbeon.saxon.expr.FunctionCall typeCheck FunctionCall.java 121 org.orbeon.saxon.expr.IfExpression typeCheck IfExpression.java 127 org.orbeon.saxon.expr.FunctionCall typeCheck FunctionCall.java 112 org.orbeon.saxon.expr.FunctionCall typeCheck FunctionCall.java 112 org.orbeon.saxon.sxpath.XPathEvaluator createExpression XPathEvaluator.java 128 org.orbeon.oxf.util.XPathCache$CachedPoolableObjetFactory makeObject XPathCache.java 310 org.orbeon.oxf.util.SoftReferenceObjectPool borrowObject SoftReferenceObjectPool.java 71 org.orbeon.oxf.util.XPathCache getXPathExpression XPathCache.java 201 org.orbeon.oxf.util.XPathCache Could somebody has/had such problem? Or maybe someone could explai how to change default separator in format-number function. I'm using: tomcat 5.5.9 orbeon 3.5 -- 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 |
Administrator
|
You use an xsl:decimal-format within XForms. For this to work, I guess
we would need to implement something like an xxforms:decimal-format extension. In the meanwhile an option is to use the translate() or replace() function to replace the separators in the resulting string. -Erik [hidden email] wrote: > I've got problem with function format-number: > > in my view.xsl i defined > <xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/> > .... > <xforms:output ref="//somethingFloat" xxforms:format="format-number(.,'#,###.00','euro')"/> > .... > > > I've got an java.lang.ClassCastException > > org.orbeon.saxon.functions.FormatNumber2 checkArguments FormatNumber2.java 66 > org.orbeon.saxon.expr.FunctionCall typeCheck FunctionCall.java 121 > org.orbeon.saxon.expr.IfExpression typeCheck IfExpression.java 127 > org.orbeon.saxon.expr.FunctionCall typeCheck FunctionCall.java 112 > org.orbeon.saxon.expr.FunctionCall typeCheck FunctionCall.java 112 > org.orbeon.saxon.sxpath.XPathEvaluator createExpression XPathEvaluator.java 128 > org.orbeon.oxf.util.XPathCache$CachedPoolableObjetFactory makeObject XPathCache.java 310 > org.orbeon.oxf.util.SoftReferenceObjectPool borrowObject SoftReferenceObjectPool.java 71 > org.orbeon.oxf.util.XPathCache getXPathExpression XPathCache.java 201 > org.orbeon.oxf.util.XPathCache > > Could somebody has/had such problem? Or maybe someone could explai how to change default separator in format-number function. > I'm using: > tomcat 5.5.9 > orbeon 3.5 > > -- 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 |
Free forum by Nabble | Edit this page |