This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: <XSL:OUTPUT METHOD>
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] <XSL:OUTPUT METHOD>
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 24 Apr 2001 09:05:43 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> What are the advantages declaring the output method (i.e
> txt,html,xml)?
The simple answer is that the serializer behaves differently in the three
cases.
It's probably a good idea to declare the output method even if you want the
default. This is because the default (HTML if the first element output is
<html>, XML otherwise) is data-dependent, and it makes things easier for the
XSLT processor if it knows the output method in advance. For example,
processing instructions that are output before the first element start tag
can't be serialized until the processor knows whether XML or HTML output is
required, because the format is different in the two cases.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list