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

[Bug 29604] [XSLT30] Request for clarification of statement in section https://www.w3.org/TR/xslt-30/#stream-examples

From: <bugzilla@jessica.w3.org>
Date: Thu, 12 May 2016 10:18:04 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29604-523-TSPw08E5sc@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29604

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
Whoops, I wish that Bugzilla allowed you to edit your submissions! Here's an
improvement:

<xsl:template name="xsl:initial-template" expand-text="yes">
  <xsl:stream href="transactions.xml">
    <xsl:variable name="aggregates" 
      select="map{'count': count(transactions/transaction),
                  'maxValue':
"max(transactions/transaction/xs:decimal(@value))}"/>
    <count>{$aggregates?count}</count>
    <maxValue>{$aggregates?maxValue}</maxValue>
  </xsl:stream>
</xsl:template>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 12 May 2016 10:18:11 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 12 May 2016 10:18:12 UTC