From: "Mark Griffin" <cornbinder(_at_)attglobal(_dot_)net>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
References: <a0510031cba7883bbecb9(_at_)[63(_dot_)188(_dot_)73(_dot_)119]>
Subject: Re: [xsl] Adding/preserving explicit closing tag on empty elements
Date: Wed, 19 Feb 2003 08:11:21 -0700
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
I'm using output method="xml" to get XHTML output and I have to use the
following to force a closing tag on my SVG "image". Try the same with your
<script> tag:
...
<object type="image/svg+xml">
<xsl:attribute name="data">
<xsl:value-of select="@PATH"/>
</xsl:attribute>
<xsl:attribute name="width">
<xsl:value-of select="@WIDTH"/>
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="@HEIGHT"/>
</xsl:attribute>
<!-- The closing 'object' tag is necessary; a simple ' />'
shows the .svg but inhibits
display of anything else beyond the .svg display.
xsl:text (a carriage return, here) is added to force
ouput of the required 'object'
closing tag. -->
<xsl:text>
</xsl:text>
</object>
Regards,
Mark G.
----- Original Message -----
From: "Mulberry Technologies List Owner"
<xsl-list-owner(_at_)lists(_dot_)mulberrytech(_dot_)com>
To: "xsl-list" <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, February 18, 2003 5:44 PM
Subject: RE: [xsl] Adding/preserving explicit closing tag on empty elements
Subject: RE: [xsl] Adding/preserving explicit closing tag on empty
elements
Date: Tue, 18 Feb 2003 15:49:26 -0500
From: "Passin, Tom" <tpassin(_at_)mitretek(_dot_)org>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
[Graham Hannington]
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?
I tried it with MSXML3 and Saxon (I think it is v6.5.2), and both of
them left the closing tag in the output document.
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list