This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Empty elements
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Empty elements
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 30 Oct 2001 15:05:35 GMT
- References: <89CD4E678F22EA44ABCDE49C8010176F0F395B@marathon.iisd.ca>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Is there any way to force XSLT to generate an empty element with an
> opening and closing tag, rather than a single empty tag?
You appear to be writing html. If the top level element of your output
is <html> (in any case) then the XSLT processor should default to html
output method.
In this method empty elements will not be output using xml empty element
syntax.
If for some reason you are generating html which does not start with
an html element then you can force html output using
<xsl:output method="html"/>
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list