I'm developing a simple XSL stylesheet to render an XML file as HTML and am using Web Tools (3.22) under Eclipse 2021-06(4.20) to run the transform and help with debugging.
The stylesheet has the following code, which sets up the main part of the HTML output:
<xsl:template match="/">
<html>
<head>
<title>chart repository</title>
<link rel="stylesheet" href="mkz.css" type="text/css"/>
</head>
<body>
... etc
When I "run as" an "XSL transform", the resulting HTML output contains this:
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>chart repository</title>
<link type="text/css" href="mkz.css" rel="stylesheet">
</head>
<body>
This produces an error message, naturally, since the <link> tag is not terminated; but it was in the original XSLT file.
I've tried putting in an unnecessary closing tag, thus: <link rel="stylesheet" href="mkz.css" type="text/css"></link>
and the result is the same. I've tried putting some text in between the <link> and the </link>: same problem.
Any idea what I'm doing wrong and what I should do to fix it?