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

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


Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike@saxonica.com




--- Comment #3 from Michael Kay <mike@saxonica.com>  2009-05-01 06:57:10 ---
Two observations about this solution:

(a) it will insert the parentheses around any root expression whose parent is a
path expression, whether or not the root expression is the only child of the
path expression. I don't know if this cases arises or if it matters.

(b) an arguably more elegant way of coding the solution would be:

  <xsl:template match="xqx:rootExpr">
    <xsl:value-of select="$SLASH"/>
  </xsl:template>

  <xsl:template match="xqx:pathExpr/xqx:rootExpr">
    <xsl:text>( </xsl:text>
    <xsl:value-of select="$SLASH"/>
    <xsl:text> )</xsl:text>
  </xsl:template>


-- 
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 Friday, 1 May 2009 06:57:21 UTC