This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29364 - XQueryX stylesheet is missing support for unaryLookup
Summary: XQueryX stylesheet is missing support for unaryLookup
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQueryX 3.1 (show other bugs)
Version: Proposed Edited Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Josh Spiegel
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-08 17:46 UTC by Josh Spiegel
Modified: 2016-01-14 09:59 UTC (History)
1 user (show)

See Also:


Attachments

Description Josh Spiegel 2016-01-08 17:46:17 UTC
The XQueryX stylesheet:
http://www.w3.org/XML/Group/qtspecs/specifications/xqueryx-31/html/Overview.html#Stylesheet

Needs support for unaryLookup. Note, header comments indicate it was added but I don't see it.
Comment 1 Josh Spiegel 2016-01-08 21:49:40 UTC
Tentative fix is to modify lookup as follows:

  <xsl:template match="xqx:lookup | xqx:unaryLookup">
    <xsl:text> ?</xsl:text>
    <xsl:choose>
      <xsl:when test="xqx:star | xqx:NCName | xqx:integerLiteral">
        <xsl:apply-templates/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$LPAREN"/>
        <xsl:apply-templates/>
	<xsl:value-of select="$RPAREN"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
Comment 2 Andrew Coleman 2016-01-14 09:59:35 UTC
The WG agreed on 2015-01-12 to adopt the change proposed in comment 1