Stefano Del Sal wrote:
I'm trying to sign a document using the transform TRANSFORM_XPATH2FILTER,
but I get a bad signature if I try to use ONLY the filter
XPath2FilterContainer.SUBTRACT
1) Ex:
String filters[][] = {
{XPath2FilterContainer.SUBTRACT, "//NotToBeSigned"}
};
transforms.addTransform(
Transforms.TRANSFORM_XPATH2FILTER,
XPath2FilterContainer.newInstances(doc, filters)
);
I'm assuming that the input nodeset is everything in the document?
(E.g. URI=""). If that's the case then this is a bug. Adding a union
(as in your second example) should not change the input node set for the
subtraction filter.
Unfortunately I'm not close enough to this code to fix it quickly.
Raul - do you know if anything changed in this area with the
optimisation work?
Cheers,
Berin