W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

[Bug 4219] why is K2-NameTest-60 an expected-error?

From: <bugzilla@wiggum.w3.org>
Date: Mon, 15 Jan 2007 12:40:01 +0000
To: public-qt-comments@w3.org
Message-Id: <E1H6R85-00057Z-GF@wiggum.w3.org>


           Summary: why is K2-NameTest-60 an expected-error?
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: per@bothner.com
         QAContact: public-qt-comments@w3.org

K2-NameTest-60 is:
declare variable $input := <e/>;
for $PI as processing-instruction() in $input//processing-instruction() return
I'm not seeing where the error is supposed to come from.
Doesn't $input//processing-instruction() evaluate to an empty sequence.
Then each item (i.e. one of them) are cast to processing-instruction().
It seems the "loop" should run zero times and produce the empty sequence.
This is without static typing, but I'm don't know why there should be an error
with static typing either.
Received on Monday, 15 January 2007 12:40:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:32 UTC