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 29236 - [xslt30ts] package-100, 101: extra empty <row> elements in output
Summary: [xslt30ts] package-100, 101: extra empty <row> elements in output
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Last Call drafts
Hardware: PC All
: 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: 2015-10-24 13:23 UTC by Michael Kay
Modified: 2016-02-16 15:00 UTC (History)
1 user (show)

See Also:


Description Michael Kay 2015-10-24 13:23:13 UTC
In package-100 I'm getting two empty <row> elements at the start, as in the expected results:

In package-101 I'm getting one empty <row> element, which isn't expected.

The first empty row appears to arise because we're applying templates to the variable $csv:quote-ok, and the value of this variable is not an empty sequence, but a document node with no children (because the xsl:variable has no "as" attribute).

I can fix the results for package-101 by adding 'as="xs:error?"' to the xsl:variable declaration, but when I do this, package-101 only has a single empty <row/> at the start: which is, I think, the correct result.
Comment 1 Michael Kay 2015-10-24 13:26:43 UTC
Note: when resolved, we need to update the example in the spec accordingly.
Comment 2 Abel Braaksma 2016-02-16 15:00:27 UTC
At the F2F there was some confusion as to whether this test was fixed, after some checking back and forth we found it was. Will close as resolved.