This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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> ...
Jim's bug.
I modified the XQueryX stylesheet in XQuery Update Facility 3.0 to fully align with the corresponding stylesheet in XQueryX 3.0 (retaining the test for updatingFunction). As a result of this change, I am marking this bug RESOLVED FIXED. If you agree with the resolution, please mark the bug CLOSED.