After digging through things a bit I *believe* the Exclusive Canonicalization spec handles this. It was designed to allow a chunk of signed XML to be portable from one containing element to another. http://www.w3.org/TR/2002/REC-xml-exc-c14n-20020718/
Antone Roundy wrote:


Mulling more...

Let's say an aggregator is putting these two entries into the same aggregate feed:

<feed ... xmlns:a="foo" xmlns:b="bar">
    ...
    <entry>
        [signature]
        <a:foo ... />
        <b:bar ... />
        ...
    </entry>
</feed>

<feed ... xmlns:b="foo" xmlns:a="bar">
    ...
    <entry>
        [signature]
        <b:foo ... />
        <a:bar ... />
        ...
    </entry>
</feed>

Perhaps a reasonable way to deal with the namespace prefix conflict would be for the signature to be applied after a transform that yielded this (putting full namespace names in where the prefixes were):

    <[atom's namespace]:entry>
        [signature]
        <foo:foo ... />
        <bar:bar ... />
        ...
    </[atom's namespace]:entry>

Unprefixed attributes would naturally remain unprefixed, but elements in the default namespace would need to have their namespace names prepended.



Reply via email to