[jdom-interest] XML Signature

Per Norrman per.norrman at austers.se
Fri Sep 17 14:55:45 PDT 2004


Laurent Bihanic wrote:
> 
> Per Norrman wrote:
> 
>> BTW, I propose we add Document#getElementById(String id) in the
>> next release.
> 
> 
> But you need a DTD or a Schema to define which attributes are IDs.´

I know.

> 
> For DTD-based documents, a Document subclass supporting getElementById 
> can be found in jdom-contrib (org.jdom.contrib.ids).

I aware of that and I've used it a few times, btw. However, the problem
here is the heavy use of XPath in XML Signature. Some of the transforms
tend to be quite 'esoteric'. And since there is an XPath function, id(),
which we cannot support (unless we provide custom Document, Element and
SAXBuilder classes,  plus custom Saxon or Jaxen JDOM wrappers), there is
a chance/risk that a JDOM XML Signature will fail on validation.




More information about the jdom-interest mailing list