bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #23176] XMLNS seems to break XQuery


From: Art Bugorski
Subject: [Bug-kawa] [bug #23176] XMLNS seems to break XQuery
Date: Mon, 05 May 2008 19:09:30 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/523.15.1 (KHTML, like Gecko) Version/3.0.4 Safari/523.15

URL:
  <http://savannah.gnu.org/bugs/?23176>

                 Summary: XMLNS seems to break XQuery
                 Project: Kawa
            Submitted by: artbugorski
            Submitted on: Monday 05/05/2008 at 19:09
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Running the following code on the attached XHTML document (which validates)
produces the result "false". However, if the "xmlns" in the HTML tag is
removed or renamed (adding another 'x' to the beginning suffices) the query
returns true. Because my knowledge of XQuery, perhaps this is not an actual
bug but the result of some minutae in the specifications, but it seems very
peculiar and was very frustrating until it was discovered and does not seem
like it is correct to me.

If this _is_ actually the _intended_ result  _any_ explanation, or link to
spec, or correction to the query, would be appreciated, but from all that I've
read and from my understanding of XQuery this should not happen.  

[code]
let $d := doc("xq_test.html")//p/text()
return $d = "pass"
[/code]



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Monday 05/05/2008 at 19:09  Name: xq_test.html  Size: 293B   By:
artbugorski

<http://savannah.gnu.org/bugs/download.php?file_id=15612>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?23176>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]