HTML module: setting "quote-nbsp" to true does not work

Bug #867244 reported by Sorin Marian Nasoi
This bug report is a duplicate of:  Bug #867394: nbsp Causes Trouble with Tidy. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Triaged
Medium
Sorin Marian Nasoi

Bug Description

For details please see Feedback #3401277:
https://sourceforge.net/tracker/?func=detail&atid=1127431&aid=3401277&group_id=226244

As an example run the following query:
import module namespace html="http://www.zorba-xquery.com/modules/converters/html";
import schema namespace html-options="http://www.zorba-xquery.com/modules/converters/html-options";

html:parse('<title>Foo</title><p>Foo!&#160;Spaces',
<options xmlns="http://www.zorba-xquery.com/modules/converters/html-options" >
<tidyParam name="output-xml" value="yes" />
<tidyParam name="doctype" value="omit" />
<tidyParam name="quote-nbsp" value="yes" />
<tidyParam name="char-encoding" value="utf8" />
<tidyParam name="newline" value="LF" />
<tidyParam name="tidy-mark" value="no" />
</options>)

the error raised is:
build/URI_PATH/com/zorba-xquery/www/modules/converters/html.xq>:124,5: type error [err:XPTY0004]: Cannot treat empty sequence as [NodeXQType documentNode content=[XQType ANY_TYPE_KIND*]].
=================================================
html:parse#2 <http://www.zorba-xquery.com/modules/converters/html>
/home/spungi/work/zorba2/build/bin/tidy.xq at line 4 column 1

Changed in zorba:
milestone: none → 2.1
Changed in zorba:
status: New → Triaged
milestone: 2.1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.