W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2009

[Bug 6733] [XQX] XQueryX for leading "/"

From: <bugzilla@wiggum.w3.org>
Date: Wed, 25 Nov 2009 17:42:04 +0000
To: public-qt-comments@w3.org
Message-Id: <E1NDLsS-0007zu-LK@wiggum.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6733


Andrew Eisenberg <andrew.eisenberg@us.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #5 from Andrew Eisenberg <andrew.eisenberg@us.ibm.com>  2009-11-25 17:42:04 ---
I believe that more work is needed on this. Test case
Steps-leading-lone-slash-10 contains the query:

$var[/*]

The XQueryX that I generate is:

    <xqx:queryBody>
      <xqx:pathExpr>
        <xqx:stepExpr>
          <xqx:filterExpr>
            <xqx:varRef>
              <xqx:name>var</xqx:name>
            </xqx:varRef>
          </xqx:filterExpr>
          <xqx:predicates>
            <xqx:pathExpr>
              <xqx:rootExpr/>
              <xqx:stepExpr>
                <xqx:xpathAxis>child</xqx:xpathAxis>
                <xqx:Wildcard/>
              </xqx:stepExpr>
            </xqx:pathExpr>
          </xqx:predicates>
        </xqx:stepExpr>
      </xqx:pathExpr>
    </xqx:queryBody>

This transforms into a query that does not parse:

$var[( / )child::*]


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 25 November 2009 17:42:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:29 UTC