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 20894 - [XT3TS] position-1801
Summary: [XT3TS] position-1801
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Candidate Recommendation
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-07 11:22 UTC by Tim Mills
Modified: 2015-05-06 21:16 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2013-02-07 11:22:46 UTC
The whitespace expected for this test doesn't appear to match the input document.
Comment 1 Abel Braaksma 2014-05-23 18:33:03 UTC
I don't see any problems with either the input or the output. The input is defined as:

<TEST>
    <LINE>1</LINE>
    <LINE>2</LINE>
    <LINE>3</LINE>
    <LINE>4</LINE>
</TEST>

the output is defined as:

<html>
   <body>
      
      <P>1</P>
      
      <P>2</P>
      
      <P>3</P>
      4
      
   </body>
</html>

the XSL is defined as:

<?xml version="1.0" encoding="utf-8"?>
<?spec fo#func-position?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="2.0">

  <xsl:output method="html"/>

  <xsl:template match="/">
    <html>
      <body>
        <xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>

  <xsl:template match='LINE[position()&lt;last()]'>
    <P>
      <xsl:apply-templates/>
    </P>
  </xsl:template>
</xsl:stylesheet>

I don't see any problems with whitespace handling. The XSL template matches the expected outcome, as far as I can see. Can you elaborate on what the problem is, or has it been taken over by events?
Comment 2 Tim Mills 2014-05-24 09:33:35 UTC
Why do you expect the big gaps between the <p> elements?
Comment 3 Michael Kay 2014-05-24 12:32:06 UTC
The default value for "indent" is "yes" in the case of method="html". So the amount of whitespace in the result is undefined. We should change the test so it is not sensitive to the amount of whitespace in the result.
Comment 4 Michael Kay 2015-03-20 15:00:39 UTC
Now fixed
Comment 5 Abel Braaksma 2015-05-06 21:16:13 UTC
Was resolved > 30 days ago, closing.