[Bug 17172] New: change to EQName needs to be reflected in stylesheet

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17172

           Summary: change to EQName needs to be reflected in stylesheet
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQueryX 3.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: andrew.eisenberg@us.ibm.com
         QAContact: public-qt-comments@w3.org
             Group: XSLXQuery_WG


Let's start with the query:

Q{http://example.org}foo, Q{http://example.org}*

Our translator will correctly generate

<?xml version="1.0"?>
<xqx:module xmlns:xqx="http://www.w3.org/2005/XQueryX"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.w3.org/2005/XQueryX
                                http://www.w3.org/2005/XQueryX/xqueryx.xsd">
  <xqx:mainModule>
    <xqx:queryBody>
      <xqx:sequenceExpr>
        <xqx:pathExpr>
          <xqx:stepExpr>
            <xqx:xpathAxis>child</xqx:xpathAxis>
            <xqx:nameTest xqx:URI="http://example.org">foo</xqx:nameTest>
          </xqx:stepExpr>
        </xqx:pathExpr>
        <xqx:pathExpr>
          <xqx:stepExpr>
            <xqx:xpathAxis>child</xqx:xpathAxis>
            <xqx:Wildcard>
              <xqx:uri>http://example.org</xqx:uri>
              <xqx:star/>
            </xqx:Wildcard>
          </xqx:stepExpr>
        </xqx:pathExpr>
      </xqx:sequenceExpr>
    </xqx:queryBody>
  </xqx:mainModule>
</xqx:module>

Our stylesheet will generate the following:

(child::"http://example.org":foo,
child::"http://example.org":*)

Which, of course, no longer parses.

-- 
Configure bugmail: https://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 Thursday, 24 May 2012 16:18:16 UTC