This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24049 - [XT3TS] Incorrect pattern in "copy-1210" test case
Summary: [XT3TS] Incorrect pattern in "copy-1210" test case
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2013-12-10 14:09 UTC by Vitaliy
Modified: 2015-05-06 21:15 UTC (History)
1 user (show)

See Also:


Description Vitaliy 2013-12-10 14:09:35 UTC
copy-1210 test case expected successful transformation result (not an error) (<assert>/out/rtf</assert>).

At the same time in the test case "xsl:copy" instruction copies document node (context node) and tries to add namespace to it. It looks like template @match attribute should be updated to match "doc" instead of "/".

  <xsl:template match="/">
    <xsl:variable name="var1"><rtf/></xsl:variable>
      <xsl:copy on-empty="$var1">
        <xsl:namespace name="n"></xsl:namespace> 
Comment 1 Abel Braaksma 2014-10-29 13:39:50 UTC
Fixed, see rev #765 in XT3 repository.

Note that some tests were assuming that on-empty should be evaluated when content is an empty PI instruction or an empty comment, text or attribute node. This is not true, on-empty has no effect in such cases, xsl:copy works only on element nodes (and possibly document nodes depending on resolution of bug 27189).
Comment 2 Abel Braaksma 2015-05-06 21:15:30 UTC
Was resolved > 30 days ago, closing.