Node transformEl = XPathAPI.selectSingleNode
(doc1, "//dsig:Transform[1]", nscontext);
Transform transform = Transform.getInstance
(doc1, Transforms.TRANSFORM_XSLT, transformEl.getChildNodes());
transform.performTransform(new XMLSignatureInput(doc2));
}
static {
org.apache.xml.security.Init.init();
}