xsl-list
[Top] [All Lists]

Adding/preserving explicit closing tag on empty elements

2003-02-18 12:33:38
From: Graham Hannington <Ghannington(_at_)csl(_dot_)com>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Adding/preserving explicit closing tag on empty elements
Date: Tue, 18 Feb 2003 18:19:49 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain

In Internet Explorer (I'm using version 6), if you code a <script> element
without an explicit closing </script> tag, then IE fails to load the HTML
file:

<html>
...
<head>
<script src="style/default.vbs" language="VBScript"/></script>
</head>
...
</html>

How (I'm using Saxon, if it makes any difference) do I stop an XSLT
processor from collapsing:

<script src="style/default.vbs" language="VBScript"/></script>

into

<script src="style/default.vbs" language="VBScript"/>

Is there some way to "sneak" a closing tag past the XSLT processor, so that
it appears in the output file?

Graham Hannington



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>