Return-Path: Delivered-To: apmail-xml-security-dev-archive@www.apache.org Received: (qmail 10094 invoked from network); 4 Apr 2007 18:41:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2007 18:41:18 -0000 Received: (qmail 54528 invoked by uid 500); 4 Apr 2007 18:41:21 -0000 Delivered-To: apmail-xml-security-dev-archive@xml.apache.org Received: (qmail 54510 invoked by uid 500); 4 Apr 2007 18:41:21 -0000 Mailing-List: contact security-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: security-dev@xml.apache.org List-Id: Delivered-To: mailing list security-dev@xml.apache.org Received: (qmail 54490 invoked by uid 99); 4 Apr 2007 18:41:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 11:41:20 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=NO_OBLIGATION,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jsp@pkc.com designates 216.75.143.162 as permitted sender) Received: from [216.75.143.162] (HELO vtmail.pkc.com) (216.75.143.162) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 11:41:10 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: What is XMLUtils::addReturnToElement for? Date: Wed, 4 Apr 2007 14:40:48 -0400 Message-ID: <16E2027582CDB74180896CDB4B8CC1F905664DA8@PKCVT01.pkc.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: What is XMLUtils::addReturnToElement for? Thread-Index: Acd23xj00ciG4KDoQxK7Dq0qF7iiPQAB+MCA References: From: "Jesse Pelton" To: X-Virus-Checked: Checked by ClamAV on apache.org By my reading of the Apache License, Version 2.0 (which is the XML Security license), you are under no obligation to distribute source code. Of course, if you plan to distribute the code for your project, that pretty much has to include your modifications to XML Security code. If that's the situation, consider opening a bug report and attaching a patch that implements the desired change. I know nothing of the code in question, but it sounds to me like it would be better to conditionally skip the call to addReturnToElement() rather than changing its behavior. With a name like that, I think it would be astonishing if it didn't add a line break under any circumstances. Of course, you'd ideally have a clean, flexible, robust mechanism for controlling where breaks are added. -----Original Message----- From: Michael McIntosh [mailto:mikemci@us.ibm.com]=20 Sent: Wednesday, April 04, 2007 1:28 PM To: security-dev@xml.apache.org Subject: What is XMLUtils::addReturnToElement for? I know what XMLUtils::addReturnToElement does, by why do it? I acknowledge that adding the occasional line to an XML document makes it=20 more readable in certain circumstances, but I'd really like to be able to=20 turn it off. Actually I'd like to leave it alone, but a system I need to interoperate with cannot accept Signatures with whitespaces in certain places. No need to tell me its should be allowed - I know - but I cannot change=20 their code. I have a fix - which is to change the source code for the funciton to turn=20 it into a no-op when a system property is set, but I'd like to not need to=20 redistribute my modified Apache source code. Thanks, Mike Michael McIntosh Java and Web Services Security Group Security, Privacy, and Extensible Technologies Department IBM Research