<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29364</bug_id>
          
          <creation_ts>2016-01-08 17:46:17 +0000</creation_ts>
          <short_desc>XQueryX stylesheet is missing support for unaryLookup</short_desc>
          <delta_ts>2016-01-14 09:59:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQueryX 3.1</component>
          <version>Proposed Edited Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Josh Spiegel">josh.spiegel</reporter>
          <assigned_to name="Josh Spiegel">josh.spiegel</assigned_to>
          <cc>andrew_coleman</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124546</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-01-08 17:46:17 +0000</bug_when>
    <thetext>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&apos;t see it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124548</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-01-08 21:49:40 +0000</bug_when>
    <thetext>Tentative fix is to modify lookup as follows:

  &lt;xsl:template match=&quot;xqx:lookup | xqx:unaryLookup&quot;&gt;
    &lt;xsl:text&gt; ?&lt;/xsl:text&gt;
    &lt;xsl:choose&gt;
      &lt;xsl:when test=&quot;xqx:star | xqx:NCName | xqx:integerLiteral&quot;&gt;
        &lt;xsl:apply-templates/&gt;
      &lt;/xsl:when&gt;
      &lt;xsl:otherwise&gt;
        &lt;xsl:value-of select=&quot;$LPAREN&quot;/&gt;
        &lt;xsl:apply-templates/&gt;
	&lt;xsl:value-of select=&quot;$RPAREN&quot;/&gt;
      &lt;/xsl:otherwise&gt;
    &lt;/xsl:choose&gt;
  &lt;/xsl:template&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124587</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-01-14 09:59:35 +0000</bug_when>
    <thetext>The WG agreed on 2015-01-12 to adopt the change proposed in comment 1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>