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:[EMAIL PROTECTED] 
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 
more readable in certain circumstances, but I'd really like to be able
to 
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 
their code.
I have a fix - which is to change the source code for the funciton to
turn 
it into a no-op when a system property is set, but I'd like to not need
to 
redistribute my modified Apache source code.

Thanks,
Mike

Michael McIntosh
Java and Web Services Security Group
Security, Privacy, and Extensible Technologies Department
IBM Research

Reply via email to