*** This bug is a duplicate of bug 867394 ***
    https://bugs.launchpad.net/bugs/867394

** This bug has been marked a duplicate of bug 867394
   nbsp Causes Trouble with Tidy

** Changed in: zorba
       Status: New => Triaged

** Changed in: zorba
    Milestone: 2.1 => None

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867244

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

Status in Zorba - The XQuery Processor:
  Triaged

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867244/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to