Re: Fix for vanishing attribute namespace prefixes?

2004-10-09 Thread Raul Benito
Wijlens, Joris (J.) wrote: Hi, So you are saying that there isn't a bug in your code and that if I parse a document "document" and select an Element "soapHeaderElement". Then I create the element I want to add (the placeholder element for the signature) and add it to the soapHeaderElement

Re: Fix for vanishing attribute namespace prefixes?

2004-10-09 Thread Raul Benito
Mikolaj Habryn wrote: On Fri, 2004-10-01 at 23:57, [EMAIL PROTECTED] wrote: create a DOM tree with only ==> serialize it and re-parseit so you got ==> http://uri-a";> DOM tree ==> signit obtaining http://uri-a";>... ==> you cutthe ds:signature and paste in the original DOM tree obtainig... ==

RE: Fix for vanishing attribute namespace prefixes?

2004-10-04 Thread Wijlens, Joris (J.)
[mailto:[EMAIL PROTECTED] Verzonden: vrijdag 1 oktober 2004 15:58 Aan: [EMAIL PROTECTED] Onderwerp: Re: Fix for vanishing attribute namespace prefixes?     On 30/09/2004, at 17:01, Joris Wijlens wrote:   Hi there,   I'm using the XML-security package for a Java project.   I have t

Re: Fix for vanishing attribute namespace prefixes?

2004-10-01 Thread Mikolaj Habryn
On Fri, 2004-10-01 at 23:57, [EMAIL PROTECTED] wrote: > create a DOM tree with only ==> serialize it and re-parseit > so you got ==> http://uri-a";> DOM tree ==> signit > obtaining > http://uri-a";>... ==> you > cutthe ds:signature and paste in the original DOM tree > obtainig... ==> and now you

Re: Fix for vanishing attribute namespace prefixes?

2004-10-01 Thread raul-info
On 30/09/2004, at 17:01, Joris Wijlens wrote: Hi there, I'm using the XML-security package for a Java project. I have this problem with as you describe it "vanishing attribute namespace prefixes". I tried the workaround (described in Mikolaj Habryn's message of Thu, 16 Se

RE: Fix for vanishing attribute namespace prefixes

2004-10-01 Thread Mikolaj Habryn
On Fri, 2004-10-01 at 19:38, Wijlens, Joris (J.) wrote: > That's no problem, I won't trust anyone anymore ;). I understand that you > are working on the problem and I won't bother you with questions about when > this is fixed. But what is important to me is that coming releases will work > on 1.3 J

Fix for vanishing attribute namespace prefixes?

2004-10-01 Thread Joris Wijlens
Hi there, I'm using the XML-security package for a Java project. I have this problem with as you describe it "vanishing attribute namespace prefixes". I tried the workaround (described in Mikolaj Habryn's message of Thu, 16 Sep 2004 19:05:56) but that didn't help

RE: Fix for vanishing attribute namespace prefixes

2004-10-01 Thread Wijlens, Joris (J.)
HEAD of the CVS repository I fear ... Can you tell me what your strategy is going to be regarding this issue. Joris -Oorspronkelijk bericht- Van: Mikolaj Habryn [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 1 oktober 2004 11:01 Aan: [EMAIL PROTECTED] Onderwerp: Re: Fix for vanishing attr

Re: Fix for vanishing attribute namespace prefixes

2004-10-01 Thread Mikolaj Habryn
On Fri, 2004-10-01 at 18:35, Wijlens, Joris (J.) wrote: > But when I try to verify message1 it fails. I think because I think > the appearing xmlns="" 's in message2 are taken into account when > signing the message (?? and message1 doesn't have them). Am I doing > something wrong here? You defini

Fix for vanishing attribute namespace prefixes

2004-10-01 Thread Wijlens, Joris (J.)
Hi there,   I'm using the XML-security package for a Java project.   I have this problem with as you describe it "vanishing attribute namespace prefixes". I tried the workaround (described in Mikolaj Habryn's message of Thu, 16 Sep 2004 19:05:56) but that didn&

AW: AW: Additional note: vanishing attribute namespace prefixes

2004-09-17 Thread Andrej Konkow
hanks alot Andrej > -Ursprüngliche Nachricht- > Von: Mikolaj Habryn [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 16. September 2004 10:11 > An: Konkow Andrej, FZ-32 > Cc: [EMAIL PROTECTED] > Betreff: Re: AW: Additional note: vanishing attribute > namespace prefixes &

Re: vanishing attribute namespace prefixes redux

2004-09-16 Thread Mikolaj Habryn
Okay, I think I've got this figured. Everybody annoyed by all the clutter in their inbox can rest easy, it's almost all over. The problem is namespaces vanishing. The cause is something in XMLSignature not playing nicely with the internal DOM state. The workaround is as follows. Firstly, it is no

Re: AW: Additional note: vanishing attribute namespace prefixes

2004-09-16 Thread Mikolaj Habryn
moves redundant namespaces. > 2. or there's an incompatibility/bug within the parser? > 3. or I'm just blind > > Any ideas (don't tell me 3. :-)? > > regards > > Andrej > > > -Ursprüngliche Nachricht- > > Von: Mikolaj Habryn [mailto:[EM

AW: Additional note: vanishing attribute namespace prefixes

2004-09-16 Thread Andrej Konkow
intelligent and removes redundant namespaces. 2. or there's an incompatibility/bug within the parser? 3. or I'm just blind Any ideas (don't tell me 3. :-)? regards Andrej > -Ursprüngliche Nachricht----- > Von: Mikolaj Habryn [mailto:[EMAIL PROTECTED] > Gesendet: D

Re: Additional note: vanishing attribute namespace prefixes

2004-09-16 Thread Mikolaj Habryn
the incoming messages. > Currently I have no solution. Do you? > > regards, > > Andrej > > ------ > > From: Mikolaj Habryn rcpt.to> > Subject: Re: vanishing attribute namespace prefixes (resend) > Newsgroups: gmane.text.xml.security.devel > Date: Mon, 13 S

Re: vanishing attribute namespace prefixes redux

2004-09-16 Thread Mikolaj Habryn
On Thu, 2004-09-16 at 00:05, Raul Benito wrote: > What do you mean for root element? For the top-level element in the document. If I create the first element by doing: Element root = thisDocument.createElementNS(namespace, prefix + ":" + tag); root.setAttributeNS(xmlnsnamespace, "xmlns:" + prefix

Re: vanishing attribute namespace prefixes redux

2004-09-15 Thread Raul Benito
> ...except that it completely fails to work on root elements in a document. > What do you mean for root element? > Fortunately (for my sanity), it appears that createElementNS *does* appear to work the way that I thought it should. Here's what I see happen. > > If I create an element with createEl

RE: vanishing attribute namespace prefixes redux

2004-09-15 Thread Lawrence McCay
: Mikolaj Habryn [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 15, 2004 9:24 AM > To: [EMAIL PROTECTED] > Subject: Re: vanishing attribute namespace prefixes redux > > > On Wed, 2004-09-15 at 22:59, Mikolaj Habryn wrote: > > What am I missing here? There must be som

Re: Additional note: vanishing attribute namespace prefixes

2004-09-15 Thread Sean Mullan
u? regards, Andrej -- From: Mikolaj Habryn rcpt.to> Subject: Re: vanishing attribute namespace prefixes (resend) Newsgroups: gmane.text.xml.security.devel Date: Mon, 13 Sep 2004 20:37:00 +1000 On Mon, 2004-09-13 at 18:42, Raul Benito wrote: rootElement.setAttributeNS("http://www.w3.org

Re: vanishing attribute namespace prefixes redux

2004-09-15 Thread Mikolaj Habryn
On Wed, 2004-09-15 at 22:59, Mikolaj Habryn wrote: > What am I missing here? There must be something blindingly obvious :( And just as a final note, if I rely purely on createElementNS (ie, no setAttributeNS(..."xmlns"...) stuff), dump the DOM to a string and reparse it from scratch before handing

vanishing attribute namespace prefixes redux

2004-09-15 Thread Mikolaj Habryn
On Mon, 2004-09-13 at 20:37, Mikolaj Habryn wrote: > For the benefit of any future searching of the list archives, the > sequence to get this right appears to be: > > a = doc.createElement(localNamespace, prefix + ":" + tag); > a.setAttributeNS(xmlnsNamespace, "xmlns:" + prefix, localNamespace); >

Additional note: vanishing attribute namespace prefixes

2004-09-15 Thread Andrej Konkow
no possibility for me to include the namespaces in the way you described as we just handle the incoming messages. Currently I have no solution. Do you?   regards,   Andrej   --   From: Mikolaj Habryn rcpt.to>Subject: Re: vanis

Re: vanishing attribute namespace prefixes (resend)

2004-09-13 Thread Mikolaj Habryn
On Mon, 2004-09-13 at 18:42, Raul Benito wrote: > rootElement.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","NS1:schemaLocation","urn:frog > http://xml.rcpt.to/mikolaj/default";); > rootElement.setAttributeNS(XMLNS_URI,"xmlns:NS1","http://www.w3.org/2001/XMLSchema-instance";); > I thi

vanishing attribute namespace prefixes

2004-09-13 Thread Mikolaj Habryn
Hi all - I have a feeling that this is a FAQ, but despite looking long and hard I haven't managed to find an answer. I'm generating a signature to cover a document that starts like so: http://www.w3.org/2001/XMLSchema-instance"; NS1:schemaLocation="urn:frog http://xml.rcpt.to/mikolaj/default";>

Re: vanishing attribute namespace prefixes (resend)

2004-09-13 Thread Raul Benito
o: [EMAIL PROTECTED] > Subject: vanishing attribute namespace prefixes > Date: 12 Sep 2004 22:37:31 +1000 > > Hi all - I have a feeling that this is a FAQ, but despite looking long > and hard I haven't managed to find an answer. > > I'm generating a signature to cover a docum

vanishing attribute namespace prefixes (resend)

2004-09-12 Thread Mikolaj Habryn
Earlier post seems to have been eaten, possibly by something expecting only subscribed addresses to post? Apologies for the resend if the original shows up within minutes... -Forwarded Message- From: Mikolaj Habryn <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: vanishing att