W3C home > Mailing lists > Public > xml-dist-app@w3.org > January 2002

Re: Media types

From: Mark Baker <distobj@acm.org>
Date: Tue, 15 Jan 2002 10:43:41 -0500 (EST)
Message-Id: <200201151543.KAA26118@markbaker.ca>
To: paul@prescod.net (Paul Prescod)
Cc: www-tag@w3.org, xml-dist-app@w3.org
> Consider this example from the XSLT specification:
> 
> <html xsl:version="1.0"
>       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>       xmlns="http://www.w3.org/TR/xhtml1/strict">
>   <head>
>     <title>Expense Report Summary</title>
>   </head>
>   <body>
>     <p>Total Amount: <xsl:value-of select="expense-report/total"/></p>
>   </body>
> </html>
> 
> It's a perfect example. This document is logically XSLT, not HTML. 

In this example, I'd say it's both HTML and XSLT.  However, HTML has
the advantage in determining how that XSLT should be interpreted, since
it's the container.

For example, if HTML had an element called "do-not-process" that meant
that any content whtin should not be dispatched to alternate processors,
and that your XSLT was within this element, would you still say it was a
stylesheet?

I agree with TimBL when he says;

"The significance of any nesting of one withing the other is to be defined by
the nesting (outermost) specification [...]"

(from http://lists.w3.org/Archives/Public/www-tag/2002Jan/0081.html )

MB
-- 
Mark Baker, Chief Science Officer, Planetfred, Inc.
Ottawa, Ontario, CANADA.      mbaker@planetfred.com
http://www.markbaker.ca   http://www.planetfred.com
Received on Tuesday, 15 January 2002 10:42:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:06 GMT