W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2002

Media types and simplified stylesheets

From: Mark Baker <distobj@acm.org>
Date: Sun, 20 Jan 2002 17:16:44 -0500 (EST)
Message-Id: <200201202218.RAA12314@markbaker.ca>
To: xsl-editors@w3.org
Hi all,

Paul Prescod recently brought to my attention an issue with XSLT 1.0
that I note is still present in XSLT 2.0.  The issue involves the
simplified style module format, and the recommended use of the generic
application/xml and text/xml media types.

Consider this example;

<html xsl:version="2.0"
    <title>Expense Report Summary</title>
    <p>Total Amount: <xsl:value-of select="expense-report/total"/></p>

Using the rules defined for the XHTML media type[1], this document is
an XHTML document because the root namespace is the XHTML namespace.
If delivered as either application/xml or text/xml, it might reasonably
be expected (see RFC 3023, Section 3, last paragraph) to process it as
XHTML, not as XSLT.

One solution would be to define an XSLT specific media type.  However,
note that using the "+xml" convention *may* also not be appropriate for
these forms of stylesheets as the convention may in the future define
this type of processing behaviour (it is certainly typical in XHTML,
SOAP, SMIL - and maybe in SVG, I haven't found the draft yet).  Granted
though, this isn't currently the case.  It may very well be that */xml
and */*+xml types will never include such a rule.

 [1] http://www.ietf.org/internet-drafts/draft-baker-xhtml-media-reg-02.txt

Mark Baker, Chief Science Officer, Planetfred, Inc.
Ottawa, Ontario, CANADA.      mbaker@planetfred.com
http://www.markbaker.ca   http://www.planetfred.com
Received on Sunday, 20 January 2002 17:59:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:22 UTC