[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: <XSL:OUTPUT METHOD>

Subject: RE: <XSL:OUTPUT METHOD>
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 24 Apr 2001 09:05:43 +0100
xsl output method html txt
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.