Hello
First let me apologise for emailing the dev group with my user
questions, but it's the only group I could find for xml-security.
I'm new to this and have been looking at the examples that are shipped
with the Java library. I have been able to generate an enveloped
Signature element within a document without much effort.
In this signature, the Reference element in the SignedInfo has the
attribute URI="". I understand that this references the current
document, which is correct. In this case, I think I need to ensure the
Transform directives exclude the Signature element itself via nested
XPath elements. For example:
<ds:Transforms>
<ds:Transform Algorithm="... cropped ...">
<XPath>not(ancestor-or-self::Signature)</XPath>
</ds:Transform>
</ds:Transforms>
Is this correct? If so, how can I achieve this programatically?
Thanks for your patience/help.
Jem