Project

Profile

Help

Indent changed on 9.8.0.14?

Added by T Hata over 5 years ago

test.xsl

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet exclude-result-prefixes="#all" version="2.0" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template name="main">
		<html>
			<head>
				<title>title text</title>
				<link href="test.css" rel="stylesheet" type="text/css" />
			</head>
			<body>
				<h1>h1 text</h1>
				<p>p text</p>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

On 9.8.0.12,

C:\test>java -jar SaxonEE9-8-0-12J\saxon9ee.jar -it:main -t -xsl:test.xsl
Saxon-EE 9.8.0.12J from Saxonica
Java version 1.8.0_181
Using license serial number V......
...
<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>title text</title>
      <link href="test.css" rel="stylesheet" type="text/css" />
   </head>
   <body>
      <h1>h1 text</h1>
      <p>p text</p>
   </body>
</html>...

On 9.8.0.14,

C:\test>java -jar SaxonEE9-8-0-14J\saxon9ee.jar -it:main -t -xsl:test.xsl
Saxon-EE 9.8.0.14J from Saxonica
Java version 1.8.0_181
Using license serial number V......
...
<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>title text</title><link href="test.css" rel="stylesheet" type="text/css" /></head>
   <body>
      <h1>h1 text</h1>
      <p>p text</p>
   </body>
</html>...

Please note that the indent in <head> is different. Is it an intentional change?


Replies (3)

Please register to reply

RE: Indent changed on 9.8.0.14? - Added by Michael Kay over 5 years ago

This will be a consequence of the changes made for bugs #3839 and #3842 (which were actually a bit more extensive than implied by the bug entries because we wrote a number of new indentation tests while investigating those bugs, and we found a number of minor details in the spec that we weren't conforming to).

Did you set any explicit serialization parameters?

I'll take another look at whether this effect is as intended when I get back from vacation.

RE: Indent changed on 9.8.0.14? - Added by T Hata over 5 years ago

Did you set any explicit serialization parameters?

No serialization parameters set.

Even if <xsl:output indent="yes" /> or <xsl:output method="xhtml" indent="yes" /> is set explicitly, the same output.

RE: Indent changed on 9.8.0.14? - Added by Michael Kay over 5 years ago

I am raising this as a bug entry here: https://saxonica.plan.io/issues/3877

Please follow progress over there.

    (1-3/3)

    Please register to reply