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

[Bug 28628] New: xquery-update-30-xqueryx.xsl drops function annotations

From: <bugzilla@jessica.w3.org>
Date: Tue, 12 May 2015 17:29:02 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28628-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 28628
           Summary: xquery-update-30-xqueryx.xsl drops function
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Update 3.0
          Assignee: john.snelson@marklogic.com
          Reporter: josh.spiegel@oracle.com
        QA Contact: public-qt-comments@w3.org

The XQuery Update conversion from XQueryX to XQuery ignores function



  <!-- Over-ride the template for functionDecl in XQueryX.xsd   -->
  <xsl:template match="xqx:functionDecl" priority="100">
    <xsl:text>declare </xsl:text>
    <xsl:if test="@xqx:updatingFunction and @xqx:updatingFunction = 'true'">
       <xsl:text>updating </xsl:text>
    <xsl:text>function </xsl:text>

This does not account for possible xqx:annotation children of xqx:functionDecl.
 Here is the original definition in XQueryX.xsl:

  <xsl:template match="xqx:functionDecl">
    <xsl:apply-templates select="xqx:annotation"/>
    <xsl:text> function </xsl:text>

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 12 May 2015 17:29:04 UTC

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