[Bug 6733] [XQX] XQueryX for leading "/"

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6733


Jim Melton <jim.melton@acm.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WONTFIX                     |FIXED




--- Comment #2 from Jim Melton <jim.melton@acm.org>  2009-04-30 23:59:40 ---
Upon further consideration, the Working Group decided that it would be worth
accommodating this common case and directed me to pose a solution.  Because we
believe (I think) that the only case where this is needed is when the source
XQueryX (.xqx) document contains the sequence:
          <xqx:pathExpr>
            <xqx:rootExpr/>
          </xqx:pathExpr>
I propose that the solution be to modify the template for xqx:rootExpr to
become:
  <xsl:template match="xqx:rootExpr">
    <xsl:if test="parent::xqx:pathExpr">
      <xsl:text>( </xsl:text>
    </xsl:if>
    <xsl:value-of select="$SLASH"/>
    <xsl:if test="parent::xqx:pathExpr">
      <xsl:text> )</xsl:text>
    </xsl:if>
  </xsl:template>

I'm leaving the bug RESOLVED, but changing the resolution to FIXED.  If you
agree with this solution, please mark it CLOSED. 


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 30 April 2009 23:59:50 UTC