> Hi Christian, > > Thank you for your comment. > >> (uses my >> registerElementById(Element element, String idValue)), the parser can >> even find these elements. > > We are also using such kind of tricks. > > And my concern is it is somewhat ugly that Id resolution is > required for well-formed processed documents. You're right. It's an ugly trick, but the only one that exists. Imagine you're creating a document from scratch and you want to define IDs. I asked the xerces-user mailing list and what I got was that there is no way in DOM to define that an attribute is of type ID during document creation. But I got a hint that Xerces allows this tricky thing to set IDs during creation: ((org.apache.xerces.dom.DocumentImpl) doc).putIdentifier(idValue, element); So well, that seems to work. ChristianReceived on Thursday, 11 October 2001 06:49:19 UTC
This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:36 UTC