W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2006

[Bug 3520] [XQueryX] multiple target locations

From: <bugzilla@wiggum.w3.org>
Date: Thu, 20 Jul 2006 22:41:33 +0000
To: public-qt-comments@w3.org
Message-Id: <E1G3hD3-0004y6-V2@wiggum.w3.org>


           Summary: [XQueryX] multiple target locations
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQueryX
        AssignedTo: jim.melton@acm.org
        ReportedBy: davidc@nag.co.uk
         QAContact: public-qt-comments@w3.org

The stylesheet templates for xqx:moduleImport and xqx:schemaImport
both have the construct

    <xsl:if test="xqx:targetLocation">
      <xsl:text> at </xsl:text>
      <xsl:call-template name="quote">
        <xsl:with-param name="item" select="xqx:targetLocation"/>

which has the effect that if there are multiple xqx:targetLocation (as allowed
by the schema, and the XQuery EBNF) then all but the first are quietly dropped.

I suggest replacing this in both cases by

<xsl:apply-templates select="xqx:targetLocation"/>

and adding

<xsl:template match="xqx:targetLocation">
   <xsl:when test="position()=1"> at </xsl:when>
   <xsl:otherwise>, </xsl:otherwise>
    <xsl:call-template name="quote">
      <xsl:with-param name="item" select="."/>

Received on Thursday, 20 July 2006 22:41:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:29 UTC