W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2009

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

From: <bugzilla@wiggum.w3.org>
Date: Fri, 01 May 2009 06:57:11 +0000
To: public-qt-comments@w3.org
Message-Id: <E1LzmgJ-0005i0-Fa@wiggum.w3.org>

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 match="xqx:pathExpr/xqx:rootExpr">
    <xsl:text>( </xsl:text>
    <xsl:value-of select="$SLASH"/>
    <xsl:text> )</xsl:text>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:27 UTC