Saxon (XQuery), JTidy, Java
Added by Anonymous about 17 years ago
Legacy ID: #4635493 Legacy Poster: durand (durand10)
Background: I am looking to fetch a html-page, rebuild it to xml using JTidy and then getting certain parts out of it with help from Saxon/XQuery. I don't know if this is any way near best practice, I am new to this sort of alterations. Technical: JTidy is working just fine; I am able to create a DOM the source, which I then want Saxon to query from. This is where it gets tricky. I am trying to invoke XQuery using the XQJ API according to: http://www.saxonica.com/documentation/using-xquery/api-query/xqj.html The problem is, where do I put the DOM as "source"? I am not really 100% sure the DOM gets correctly made with JTidy, but it writes out just fine. Any tip? If more information is needed, please state what you require. Thanks a lot, in advance.
Please register to reply