Re: [Xsltforms-support] format-number
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2015-11-15 20:45:24
|
Hi Ioan, The format-number() function is now supported in XPath expressions. This has been committed in source repositories. It can be used with 2 parameters only and signs to be used in picture are the ones for English: "." as decimal separator and so on. This way, pictures don't have to be rewritten for applications with multi-language support. New properties are now supported in config.xsl files to allow specific separators for a language. For example, for French: <format-number.decimal-separator-sign>,</format-number.decimal-separator-sign> <format-number.exponent-separator-sign>.10^</format-number.exponent-separator-sign> <format-number.grouping-separator-sign> </format-number.grouping-separator-sign> <format-number.infinity>Infini</format-number.infinity> <format-number.minus-sign>-</format-number.minus-sign> <format-number.NaN>Non numérique</format-number.NaN> <format-number.percent-sign>%</format-number.percent-sign> <format-number.per-mille-sign>‰</format-number.per-mille-sign> Please send me corresponding values for your country. Thank you for your feedback! --Alain Le 08/11/2015 21:33, Alain Couthures a écrit : > Hi Ioan, > > What do you mean by "displayed"? Could you please send a form as an example? > > From my point of view, formatting is to be consider for input controls > and there should be a way to convert the effective value into the one to > be edited and the way back. A solution would be a consider a sort of > shadow DOM where hidden extra nodes are added for processing. Is it what > you are looking for? > > Thanks! > > Alain > > Le 08/11/2015 20:14, Ioan Fericel a écrit : >> Hi, >> >> A topic that has been discussed a while ago: What solution could be >> found to show a number like 7.50 to be displayed 0 at the end? Outside >> of xsltforms or included in it. >> >> It may now be more easily integrated into xsltforms? >> >> Thanks, >> Ioan >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |