From: "Michael Kay" <michael(_dot_)h(_dot_)kay(_at_)ntlworld(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: RE: [xsl] Adding/preserving explicit closing tag on empty elements
Date: Tue, 18 Feb 2003 20:46:34 -0000
You should be using <xsl:output method="html"/>
Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Mulberry Technologies List Owner
Sent: 18 February 2003 19:34
To: xsl-list
Subject: [xsl] Adding/preserving explicit closing tag on
empty elements
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list