Discussion:
MIME Type for XSL
Alexander Voropay
2002-11-18 13:42:14 UTC
Permalink
Hi!

1) Does anyone know, what is default MIME Type for "external" XSL ?
I need to configure my WEB-Server to proper MIME Type.

text/xsl
or
text/xml


2) What MIME Type I should use in my XML for "embedded" XSL ?
=========
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<?xml-stylesheet type="text/xsl"

href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"?>
<article>
...
========

Is there any standart for this ?


P.S. It defined for CSS, not for XSL : http://www.w3.org/TR/xml-stylesheet/

--
-=AV=-


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
David Carlisle
2002-11-18 14:24:32 UTC
Permalink
text/xsl
or
text/xml

text/xsl has never been registered (although it was used in some
examples in various documents, and it works in IE)

following the new house style for xml releated mime types it's _supposed_
to be text/xslt+xml but

text/xml

is also correct (as xslt is XML) and has the benefit of working in
IE Mozilla and netscape, so I'd use text/xml.

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
Mike Brown
2002-11-18 22:31:32 UTC
Permalink
Post by Alexander Voropay
text/xsl
or
text/xml
text/xsl has never been registered (although it was used in some
examples in various documents, and it works in IE)
following the new house style for xml releated mime types it's _supposed_
to be text/xslt+xml but
per rfc 3023, use of 'text' media type is less than favorable. if the intent
is to process the xsl and not just view it, or unless some other encoding
related conditions are met, application/xslt+xml is preferable.

of course, using this today has the downside that web browsers / OSes treat
unrecognized subtypes of 'application' with great caution and don't easily
give you the option of saying "from here on out, treat this the same way you
treat text/xsl".
Post by Alexander Voropay
text/xml
is also correct (as xslt is XML) and has the benefit of working in
IE Mozilla and netscape, so I'd use text/xml.
i'd underscore the fact that there's a clear difference between
what is correct and what works in these applications... "works"
in the sense that the applications behave the way you're intending.

the original poster will have to decide whether to do what's correct
or just do what works. it's like HTML in the Netscape's heyday...

-mike

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
David Carlisle
2002-11-19 09:40:03 UTC
Permalink
Post by Mike Brown
per rfc 3023, use of 'text' media type is less than favorable. if the intent
is to process the xsl
yes I wondered about suggestting application/ but I think for a
programming language that is usually hand authored, text/ musy surely be
right. application/ is fine for stuff that is essentially machine
generated code or data, but you can read xslt in emacs, can't you?

Anyone on this list probably _reads_ a lot more xslt than they run.

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
Wendell Piez
2002-11-19 15:55:19 UTC
Permalink
Post by David Carlisle
Anyone on this list probably _reads_ a lot more xslt than they run.
:-> But if I run it many times, do I get extra credit?

Cheers,
Wendell


___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_
"Thus I make my own use of the telegraph, without consulting
the directors, like the sparrows, which I perceive use it
extensively for a perch." -- Thoreau


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
G. Ken Holman
2002-11-18 15:30:02 UTC
Permalink
Post by Alexander Voropay
text/xsl
or
text/xml
text/xsl has never been registered (although it was used in some
examples in various documents, and it works in IE)
following the new house style for xml releated mime types it's _supposed_
to be text/xslt+xml but
text/xml
is also correct (as xslt is XML) and has the benefit of working in
IE Mozilla and netscape, so I'd use text/xml.
Is there any news on the status of RFC 3023[1] section 8.17 use of
"application/xslt+xml" for this purpose?

............... Ken

[1] http://www.faqs.org/ftp/rfc/rfc3023.txt


--
Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO:
- North America: Feb 3 - Feb 7,2003

G. Ken Holman mailto:***@CraneSoftwrights.com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6 Definitive XSLT and XPath
ISBN 0-13-140374-5 Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1 Practical Formatting Using XSL-FO
Next conference training: 2002-12-08,03-03,06


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Continue reading on narkive:
Loading...