Public bug reported:

Consider the following example Query:

  import module namespace json = 
"http://www.zorba-xquery.com/modules/converters/json";;
  import module namespace html = 
"http://www.zorba-xquery.com/modules/converters/html";;
  declare namespace j = "http://john.snelson.org.uk/parsing-json-into-xquery";;
  let $text := "<p>" || json:parse("{""text"":""Let's get it. 
\ud83d\udc4a""}")/j:pair[@name="text"]/text() || "</p>"
  return html:parse($text)

Problem:

this query raises an error in file src/com/zorba-
xquery/www/modules/converters/html.xq.src/tidy_wrapper.h function
createHtmlItem(...) and returns an empty sequence. Yet, html:parse ()
has return type document-node().


(not sure if chiller is you, chris?)

** Affects: zorba
     Importance: Undecided
     Assignee: Chris Hillery (ceejatec)
         Status: New


** Tags: improve-code-quality incorrect-result usability

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

Title:
  in module converters/html function parse returns empty sequence on
  error

Status in Zorba - The XQuery Processor:
  New

Bug description:
  Consider the following example Query:

    import module namespace json = 
"http://www.zorba-xquery.com/modules/converters/json";;
    import module namespace html = 
"http://www.zorba-xquery.com/modules/converters/html";;
    declare namespace j = "http://john.snelson.org.uk/parsing-json-into-xquery";;
    let $text := "<p>" || json:parse("{""text"":""Let's get it. 
\ud83d\udc4a""}")/j:pair[@name="text"]/text() || "</p>"
    return html:parse($text)

  Problem:

  this query raises an error in file src/com/zorba-
  xquery/www/modules/converters/html.xq.src/tidy_wrapper.h function
  createHtmlItem(...) and returns an empty sequence. Yet, html:parse ()
  has return type document-node().

  
  (not sure if chiller is you, chris?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1025194/+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