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: <XSL:OUTPUT METHOD>


> 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


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