This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Empty elements




> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]