Return-Path: X-Original-To: apmail-xalan-dev-archive@www.apache.org Delivered-To: apmail-xalan-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81D10D94E for ; Thu, 20 Dec 2012 01:53:13 +0000 (UTC) Received: (qmail 21409 invoked by uid 500); 20 Dec 2012 01:53:13 -0000 Delivered-To: apmail-xalan-dev-archive@xalan.apache.org Received: (qmail 21303 invoked by uid 500); 20 Dec 2012 01:53:12 -0000 Mailing-List: contact dev-help@xalan.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@xalan.apache.org Delivered-To: mailing list dev@xalan.apache.org Received: (qmail 21273 invoked by uid 99); 20 Dec 2012 01:53:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 01:53:12 +0000 Date: Thu, 20 Dec 2012 01:53:12 +0000 (UTC) From: "Gary Gregory (JIRA)" To: dev@xalan.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (XALANJ-2565) java.lang.RuntimeException: ElemTemplateElement error: Malformed format string MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/XALANJ-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13536684#comment-13536684 ] Gary Gregory commented on XALANJ-2565: -------------------------------------- I should have time to look at this on Sunday or early in the week. > java.lang.RuntimeException: ElemTemplateElement error: Malformed format string > ------------------------------------------------------------------------------- > > Key: XALANJ-2565 > URL: https://issues.apache.org/jira/browse/XALANJ-2565 > Project: XalanJ2 > Issue Type: Bug > Security Level: No security risk; visible to anyone(Ordinary problems in Xalan projects. Anybody can view the issue.) > Components: Xalan > Affects Versions: 2.7.1 > Environment: Java 1.6.37 + Glassfish 3.0.1 + Xalan 2.7.1 > Reporter: alebor > Assignee: Steven J. Hathaway > Fix For: 2.7.1 > > Attachments: XALANJ-2565.zip > > > Setting decimal format decimal/grouping separators causes runtime exception. It looks like when "'#,###.###" pattern is used, you are not allowed to use "." for grouping separator and "," for decimal separator while from format-number documentation this should be possible since "," and "." specify the POSITION of the separators. > Documentation: > =========== > string format-number(number,format,[decimalformat]) > number Required. Specifies the number to be formatted > format Required. Specifies the format pattern. Here are some of the characters used in the formatting pattern: > 0 (Digit) > # (Digit, zero shows as absent) > . (The position of the decimal point Example: ###.##) > , (The group separator for thousands. Example: ###,###.##) > % (Displays the number as a percentage. Example: ##%) > ; (Pattern separator. The first pattern will be used for positive numbers and the second for negative numbers) > decimalformat Optional. > EXCEPTION: > ========= > SEVERE: SystemId Unknown; Line #57; Column #73; java.lang.RuntimeException: ElemTemplateElement error: Malformed format string: #,###.### > Example: > ====== > > > > > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org For additional commands, e-mail: dev-help@xalan.apache.org