Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 29882 invoked from network); 11 Aug 2004 08:02:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Aug 2004 08:02:53 -0000 Received: (qmail 19185 invoked by uid 500); 11 Aug 2004 08:02:48 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 19153 invoked by uid 500); 11 Aug 2004 08:02:48 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 19138 invoked by uid 99); 11 Aug 2004 08:02:47 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [212.8.217.2] (HELO mail.s-und-n.de) (212.8.217.2) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 11 Aug 2004 01:02:44 -0700 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id 64E0B19F5B6 for ; Wed, 11 Aug 2004 10:02:42 +0200 (CEST) Received: from hw0386 ([10.10.2.96]) by notes.sundn.de (Lotus Domino Release 6.5) with ESMTP id 2004081110023082-35094 ; Wed, 11 Aug 2004 10:02:30 +0200 From: "Carsten Ziegeler" To: "Cocoon-Dev" Subject: [BUG] JXTG/JXTT eats backslashes Date: Wed, 11 Aug 2004 10:03:12 +0200 Organization: S&N AG MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcR/eaXkGkieDWgYTMOZqgpSWwxoAQ== X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 11.08.2004 10:02:31, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 11.08.2004 10:02:31, Serialize complete at 11.08.2004 10:02:31 Message-ID: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I just found another "nice feature" of the JXTG/JXTT. It eats backslashed out of your text! For example, if you read this XML by the JXTG: \ha\llo The resulting XML is: hallo This feature is very nice if you use forms with fields that can contain backslashed and you're running the JXTG after the forms transformer! Anyways, the TextEvent subclass has a special handling for backslashes: if (c == '\\') { ch = in.read(); if (ch == -1) { buf.append('\\'); } else { buf.append((char)ch); } } I don't see any real sense in this (note that backslashes at the end are not removed). If noone objects, I will remove this special handling. Carsten Carsten Ziegeler Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.net/weblogs/rael/