Aaah, have found the trick,
The evil curse of file:// or file:/ or file:///...
Right now, what's happening in TestSAXReader is that it's trying to open "file://abs/unix/path" which is supposed to be "<currentDir>/abs/unix/path", instead, it should be trying to open "file:///abs/unix/path". I tried changing the line 211 to put "file://" instead of "file:/" which seems to go better...
paul
On 6-Jun-04, at 10:04 Uhr, Maarten Coene wrote:
Paul,
could you tell me what the problem is with the SAXReader test? It works for me...
Maarten
On Sat, 5 Jun 2004, Paul Libbrecht wrote:
Very fine Marteen!
Seems to be quite a good idea and seems to work for me (and the test seems to work). I would add, at the beginning of XMLWriter.characters() (at line 604), the following to prevent a -1 index a bit a later:
if ( length == 0 ) return;
(yes, it has happened to cal characters with length zero!).
thanks, looking forward for the release or a further beta, jelly is now
already at 1.5-b2.
Note that I have TestSAXReader to be failing since a while... is it
known? (I just delete the file after every update but that's not very
good...).
paul
On 5-Jun-04, at 01:33 Uhr, Maarten Coene wrote:
Paul,
I've committed a new XMLWriter class to CVS to solve your issue. I hope
it's finally fixed now, could you check it out? If it still doesn't
work
as expected, could you
provide some additional junit tests that illustrate the possible
problem(s)?
thanks, Maarten
On Fri, 4 Jun 2004, Paul Libbrecht wrote:
Dear DOM4jers,
Oh what a surprise when I got that, again, my words are cut in Jelly... but my tests in TestHTMLWriter and TestXMLWriter were running...
OK, so Jelly is using directly the SAX' characters method... attached
a
simple which shows that the XMLWriter inserts spaces unduely.
I haven't worked on a fix... but I think I remember that I posted a fix which was repairing somewhat exactly what I see is here...
thanks
paul
Here's the extra test:
public void testBug923882asWriter() throws Exception { // use an the HTMLWriter sax-methods. // StringWriter buffer = new StringWriter(); HTMLWriter writer = new HTMLWriter(buffer,makePrettyPrintFormat()); writer.characters("wor".toCharArray(),0,3); writer.characters("d-being-cut".toCharArray(), 0,11); String expected = "word-being-cut"; System.out.println("Comparing \"" +expected+ "\" to \"" + buffer + "\"."); assertEquals(expected,buffer.toString()); }
------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X.From Windows to Linux, servers to mobile, InstallShield X is the oneinstallation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev
------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev