Dear Christian,
I have downloaded the latest snapshot (for sure this time) and both things are, as you said, fixed.
Many thanks, James
On 31 Jan 2016, at 15:50, Christian Grün christian.gruen@gmail.com wrote:
I get a java.lang.NullPointerException whenever include-content-type is set to yes and there is a text node in the HTML.
Thanks; this one has been fixed. It takes me around 10 minutes to upload the latest snapshot, so… Sorry for letting you wait ;)
So for example, this will return an error:
let $html :=
<html> <head></head> <body> <p>yy</p> </body> </html> return file:write("test.html",$html,map {"method":"html","html-version":"5.0","include-content-type":"yes”})
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.4 beta f5341cc Java: Oracle Corporation, 1.8.0_20 OS: Mac OS X, x86_64 Stack Trace: java.lang.NullPointerException
But this will not:
let $html :=
<html> <head></head> <body> <p></p> </body> </html> return file:write("test.html",$html,map {"method":"html","html-version":"5.0","include-content-type":"yes”})
(no yy in the <p> element).
Regards, James
On 31 Jan 2016, at 14:50, James Ball basex-talk@jamesball.co.uk wrote:
Dear Christian,
Sorry to take so long coming back to you but I’ve now had a chance to download the latest snap short (8.4 beta f5341cc) and try this.
Unfortunately I’m still getting odd behaviour.
file:write(“test.html",<html><head><meta http-equiv="REFRESH" content="60"/></head><body></body></html>,map {"method":"html","html-version":"5.0","include-content-type":"yes”})
I think this should give me:
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8”> <meta http-equiv="REFRESH" content="600"> </head> <body> </body></html>
But what it’s still giving me is:
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> </body></html>
Regards, James
On 14 Jan 2016, at 06:48, Christian Grün christian.gruen@gmail.com wrote:
No reason to be sorry; I should simply have spent a few more seconds on reading your mail and the latest version of the spec ;) The problem is now fixed [1,2].
[1] https://github.com/BaseXdb/basex/commit/bf81e67322ca898aaeefc107e6bd669955f6... [2] http://files.basex.org/releases/latest/