RE: Re: Content-type and transforms (was RE: [PROPOSAL] Release v2.2.0 of Maverick)
"Schnitzer, Jeff" <[email protected]>
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
> From: Kevin O'Neill [mailto:[email protected]] > > The output of an XSLT can be almost anything text/html, > application/xml+html, image/svg, application/foo+bar. Wont we need some > way of setting this? You can already specify an output-type attribute for XSL transforms like this: <transform type="xslt" path="blah.xsl" output-type="text/barf"/> It defaults to text/html, although you can change the default by redefining the factory in the <modules> section. I don't believe any of the other transform types support this attribute, but so far it hasn't been requested. With document transforms (at least with JSP), the content-type is usually set in the document. Jeff Schnitzer [email protected] ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en [INVALID FOOTER]