Specifiying the XPath exactly (/html[1]/body[1]/center[1]/table[4]/tr[1]/td[1]) works. Should be a good hint for the Xalan team, shouldn't it?

Joerg


Joerg Heinicke wrote:


Vadim Gritsenko wrote:

Yahoo screenscrape example was not working for long time now. I had not had a chance to find a reason why. Search sample sitemaps, I had included yahoo screenscrape pipeline somewhere..... Oops, it's gone.


Found it in blocks/html/samples/sitemap.xmap. Does not work:


That happens only if used with the xpath parameter. I debugged a bit as far as possible (is it possible to tell Eclipse not to use the Xalan sources out of JDK's src.zip, but from the path I'm telling it?) and I found out:
org.apache.excalibur.xml.xpath.XPathProcessorImpl:265


final XObject result =
         XPathAPI.eval(contextNode, str, new XalanResolver(resolver));

works, but the next line

result.nodelist()

(converting the XNodeSet into a nodelist) results in the ArrayIndexOutOfBoundsException.

Found no relating bug in bugzilla.

Tried it with Xalan jar built from CVS and it did neither work.

Joerg



Reply via email to