Re: signature elements indent

2007-02-14 Thread Jorge Martín Cuervo
Hi Sean, this isn't my main purpouse, but i want to continue editing the xml without be concerned with this issues. I want to sign an xml part, and keep editable the others. Maybe the user or the editor make indentation, insert spaces and something else that change the shape of the xml, but not th

Re: signature elements indent

2007-02-13 Thread Sean Mullan
Another question to ask is why do you want to indent the signature? Is this for making it easier to view? If so, then just use an XML-aware editor or web browser like firefox that automatically formats and indents the XML so it looks nicer. --Sean Raul Benito wrote: We have a feature request

Re: signature elements indent

2007-02-13 Thread Raul Benito
We have a feature request like this in the bugzilla DB. If anyone want to take it, and send the patchs, feel free. On 2/13/07, Berin Lautenbach <[EMAIL PROTECTED]> wrote: I'm not sure what can be done in the Java library to control or turn off indenting. Anyone else able to assist? Cheers,

Re: signature elements indent

2007-02-13 Thread Berin Lautenbach
I'm not sure what can be done in the Java library to control or turn off indenting. Anyone else able to assist? Cheers, Berin Jorge Martín Cuervo wrote: Hi Berin, Maybe for me, a solution would be eliminate all line feeds and carriage returns in the Signature element. So, the xml c

Re: signature elements indent

2007-02-13 Thread Jorge Martín Cuervo
Hi Berin, Maybe for me, a solution would be eliminate all line feeds and carriage returns in the Signature element. So, the xml can be indented and before the validation i can clean up again this LF/CR. is it posible? is there any posibility to configure the API like this? thanks again! El ma

Re: signature elements indent

2007-02-13 Thread Berin Lautenbach
You need to do your indenting before you sign, which means you can really only indent your own XML prior to attaching the signature node. The library handles the indenting of the elements. Off the top of my head I'm not sure how much control you can have of that for the Java library. For the

Re: signature elements indent

2007-02-12 Thread Jorge Martín Cuervo
Hola Raul i understand, but after check the xml files used in the samples i found several like this in merlin directory: http://www.w3.org/2000/09/xmldsig#";> http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; /> http://www.w3.org/2000/09/xmldsig#rsa-sha1"; /> http://www.w3.org/TR/

Re: signature elements indent

2007-02-12 Thread Raul Benito
Hola Jorge, Sorry no luck, If you change the signature it will be void. No matter what books have told, spaces are an important part of the XML. And it means a lot. You cannot change it without changing the signature. Regards, Raul On 12 Feb 2007 12:00:20 +0100, Jorge Martín Cuervo < [EMAIL PR

RE: signature elements indent

2007-02-12 Thread Jorge Martín Cuervo
Monday, February 12, 2007 10:00 PM > To: security-dev@xml.apache.org > Subject: signature elements indent > > > Hi all, > > I want to create a signature inside an xml file, i use several > transforms to get a portion of the original xml with xpath, and to > canonize. I decided t

signature elements indent

2007-02-12 Thread Jorge Martín Cuervo
Hi all, I want to create a signature inside an xml file, i use several transforms to get a portion of the original xml with xpath, and to canonize. I decided to don't attach the public keys. http://defactops.com"; xmlns:hr="http://ns.hr-xml.org/2004-08-02"; xmlns:xs="http://www.w3.org/2001/X