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

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