I am very sorry for posting this to a development group, but I could not find an
xalan-users group, and I have not gotten any responses from xerces-j-users. :/
I have been struggling with trying to get the XPath id() function to work in the
application I am writting. I have a DTD that defines an ID attribute and an xslt that
performs some custom html translation. During runtime, I load the xml document using
the org.apache.xerces.DOMParser, and the XPathAPI.selectNodeList() method to find the
node I want. Unfortunately, I am having to use the XPath "//element[@ID='" + eid +
"']" instead of "id(" + eid + ")". There are two problems with this. First, it is
slow on large documents, and second, I have to have a large if nest to keep trying
different elements until I find the one that matches.
Has *anyone* done anything with DTD id attributes in Xalan? Could someone spare a
moment to give me a pointer or maybe even an example?
Thanks very much,
-- Daniel Einspanjer, [EMAIL PROTECTED] on 07/11/2001