sig.addDocument("#xpointer(//Header)");
Reviewing the archive I see that a) If I'm not using an ID attribute I don't seem to able to do this. Is
this true even if I have a schema for the document?
I don't believe we really have full xpointer in the library at the moment. The best we can do is "#xpointer(/)" - i.e. the root of the document.
b) I can do this using XPath transforms.
Yup. Use the full document and then an XPath expression to narrow done to the node-set you are interested in.
My problem is that I am following a set of guidelines which state a) That I should reference the "Header" and "Body" separately in my signature b) That I should not use Transforms ( apart from the normal C14N and enveloped signature )
That makes it tricky unless you have an Id attribute.
c) I can't depend on the document following the schema precisely ( the organization sending the document is loose in the way it interprets the schema.)
My Question is "IS there any way of using the sig.addDocument("Xpointer(Xpath))"); type
syntax at all ? Or is there any planned?"
Does anyone know if Xerces/Xalan has xpointer support? (I have not checked :>)
I would be quite willing to write a resolver or whatever to do this ( I am assuming I will use Xalan/Xerces XPath engine to do the hard part ).
I don't think you'd need a special resolver, but if not, I think you do need to do an XPath transform.
