Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » XSLT transform in WTP creates unterminated element(Stylesheet has valid <link> element, rendered invalidly)
XSLT transform in WTP creates unterminated element [message #1844046] Sun, 29 August 2021 17:47
Henry Law is currently offline Henry LawFriend
Messages: 1
Registered: August 2021
Junior Member
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?
Previous Topic:Save actions for html, js files
Next Topic:Problems using the JSON editor validator
Goto Forum:
  


Current Time: Tue Apr 23 09:21:10 GMT 2024

Powered by FUDForum. Page generated in 0.03374 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top