santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Mullan <Sean.Mul...@Sun.COM>
Subject Re: Signature and children - redundant namespace declarations
Date Wed, 30 May 2007 16:17:42 GMT
Brent Putman wrote:
> When I generate a signature using XMLSignature, the library is
> redundantly adding the signature namespace declaration on every child
> element of the ds:Signature element.  Is there any way that this
> behavior can be avoided or turned off?  Am I doing something wrong?  I
> looked in the docs, I couldn't find any relevant settings, but maybe I
> missed something.

This should only happen if you have a dependency on XPath, for example 
you are using an XPath Transform. This is to workaround a problem in 
Xalan, in which the parent namespace nodes are not visible in the 
children. See


> It would be ideal if it could be declared only once, on the ds:Signature
> object itself.  I know it's mostly a cosmetic thing, but one of our
> OpenSAML users noticed and inquired about it, so I wanted to see if
> there is an easy solution.  If not, the only alternative I could think
> of was to post-process the DOM and remove the redundant declarations
> (before signing, of course).
> Thanks,
> Brent

View raw message