Any call to document.evaluate() throws a TypeError, for example:
var h1_iter = document.evaluate("//h1", document, null, XPathResult.ANY_TYPE, null);
I use a couple of XPath queries to build a table of contents for a rather heterogeneous document parsed together from different sources, so they come in handy there. The obvious workaround is not to use document.evaluate() and traverse the document tree manually instead - or pre-render the the entire HTML file and use Prince with that - but is there any other workaround?
The same issue happens with both the official Prince 10 Windows release and the "alpha" release in http://www.princexml.com/latest/.
Cheers,
Jori Rintahaka / Silicon Labs
var h1_iter = document.evaluate("//h1", document, null, XPathResult.ANY_TYPE, null);
I use a couple of XPath queries to build a table of contents for a rather heterogeneous document parsed together from different sources, so they come in handy there. The obvious workaround is not to use document.evaluate() and traverse the document tree manually instead - or pre-render the the entire HTML file and use Prince with that - but is there any other workaround?
The same issue happens with both the official Prince 10 Windows release and the "alpha" release in http://www.princexml.com/latest/.
Cheers,
Jori Rintahaka / Silicon Labs