W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2005

[Bug 1462] New: sequenceExpr use in XQueryX

From: <bugzilla@wiggum.w3.org>
Date: Tue, 17 May 2005 18:28:07 +0000
To: public-qt-comments@w3.org
Message-Id: <E1DY6nX-0007dY-TX@wiggum.w3.org>


           Summary: sequenceExpr use in XQueryX
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQueryX
        AssignedTo: jim.melton@acm.org
        ReportedBy: bshrom@yahoo.com
         QAContact: public-qt-comments@w3.org


What would be a correct XQueryX statement for the following XQuery:
("FOO", "BAR")

According to the XQueryX schema this is valid statement:

    xsi:schemaLocation="http://www.w3.org/2005/04/XQueryX ../xsd/xqueryx.xsd">
            <xqx:expr xsi:type="xqx:pathExpr">
					<xqx:expr xsi:type="xqx:sequenceExpr">
						<xqx:expr xsi:type="xqx:stringConstantExpr">
						<xqx:expr xsi:type="xqx:stringConstantExpr">


However, if you run XQueryX->XQuery stylesheet transformation it will produce:
In the recent release of the stylesheet new for-each cycle have been added to
the template for sequenceExpr, that breakes the conversion. 

  <xsl:template match="xqx:expr[@xsi:type='xqx:sequenceExpr']">
    <xsl:for-each select="*"> <!-- NEW -->
      <xsl:call-template name="paranthesizedList">
        <xsl:with-param name="delimiter" select="$COMMA_NEWLINE"/>
    </xsl:for-each>  <!-- NEW -->

Is it a bug or I'm missing something here, below I provided AST for
("FOO","BAR") in the XML form:

Received on Tuesday, 17 May 2005 18:40:54 UTC

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