inclusiveNamespaces = new InclusiveNamespaces(inclusiveElement,
this._transformObject.getBaseURI()).getInclusiveNamespaces();
}
Canonicalizer20010315ExclWithComments c14n =
new Canonicalizer20010315ExclWithComments();
c14n.set_includeComments(!input.isExcludeComments());
if (os!=null) {
c14n.setWriter( os);
}
byte []result;
if (input.isOctetStream()) {
result=c14n.engineCanonicalize(input.getBytes());
} else if (input.isElement()) {
org.w3c.dom.Node excl=input.getExcludeNode();
result =c14n
.engineCanonicalizeSubTree(input
.getSubNode(), inclusiveNamespaces
,excl);
} else {
result = c14n
.engineCanonicalizeXPathNodeSet(input
.getNodeSet(), inclusiveNamespaces
);
}
XMLSignatureInput output=new XMLSignatureInput(result);