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

[Bug 25703] New: Example of xsl:merge still contains bind-key attribute

From: <bugzilla@jessica.w3.org>
Date: Wed, 14 May 2014 08:03:45 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-25703-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25703

            Bug ID: 25703
           Summary: Example of xsl:merge still contains bind-key attribute
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: innovimax+w3c@gmail.com
        QA Contact: public-qt-comments@w3.org

The example in 15.8 Examples of xsl:merge still make use of bind-key attribute

[[
<xsl:merge bind-key="merge-key">
  <xsl:merge-source name="master" 
                    select="doc('master.xml')/data/record">
      <xsl:merge-key select="@ID"/>
  </xsl:merge-source>
  <xsl:merge-source name="updates"
                    sort-before-merge="yes"
                    select="doc('transactions.xml')/transactions/update">     
      <xsl:merge-key select="@record"/>
  </xsl:merge-source>
  <xsl:merge-action>
    <xsl:choose>
      <xsl:when test="empty(current-merge-group('updates'))">
        <xsl:copy-of select="current-merge-group('master')"/>
      </xsl:when>
      <xsl:when test="current-merge-group('updates')/@action=('insert',
'replace')">
        <record ID="{$merge-key}">
          <xsl:copy-of select="current-merge-group('updates')/*"/>
        </record>
      </xsl:when>
      <xsl:when test="current-merge-group('updates')/@action='delete'"/>
    </xsl:choose>
  </xsl:merge-action>
  </xsl:merge>
]]

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 14 May 2014 08:03:48 UTC

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