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

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

            Bug ID: 28628
           Summary: xquery-update-30-xqueryx.xsl drops function
                    annotations
           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
annotations.  

See:
http://www.w3.org/2015/02/xquery-update-30/xquery-update-30-xqueryx.xsl

Specifically:

  <!-- 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:if>
    <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:text>declare</xsl:text>
    <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