Reputation: 787
Can someone post me an examble of a xades4j signature using an xpath or a xslt transformation, if it is possible?
for example: if i have this document:
<a>
<b>text</b>
<c>zzz</c>
<b>yyy</b>
</a>
i want a xades signature that sign only b element(s), thanks.
Upvotes: 1
Views: 830
Reputation: 2090
There's a section on the documentation regarding transforms.
Also, there's a package with algorithm definitions, including XPath transform, that you can use when defining the signed data objects.
In your example, you probaly would want a DataObjectReference
with an empty URI (whole document) and then the XPathTransform
with an expression like /a/b.
Upvotes: 1