Hello, apologies if this is already answered somewhere - I haven't been able to find any answer.
I'd like to ask whether it's possible to have a Canonicalizer remove unused namespace declarations from input XML files. More specifically, I'd like to use the Canonicalizer.ALGO_ID_C14N11_OMIT_COMMENTS algorithm and have it output (e.g.) the following pseudo-XML file: <Root xmlns="urn:example.com:example.v1"> ... </Root> whereas it outputs: <Root xmlns="urn:example.com:example.v1" xmlns:ns2="urn:example.com:example.v2"> ... </Root> even despite the "ns2" namespace is never used in the XML file. It probably isn't illegal but I need to sign the canonicalized forms and be able to re-construct them at a later point in time, so I'm worried that a sudden change of behaviour will break my signatures. Is there a way to control this behaviour? If not, might I request its addition? Thanks, Jiri
