W3C home > Mailing lists > Public > www-svg@w3.org > April 2008

Re: text/html for html and xhtml

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 21 Apr 2008 20:57:04 +0100
Message-Id: <200804211957.m3LJv45x023800@quetzal.nag.co.uk>
To: bzbarsky@MIT.EDU
CC: hammond@csc.albany.edu, public-html@w3.org, www-math@w3.org, www-svg@w3.org

> but right now the only technically standards-compliant way to have
> MathML in XHTML is to serve the  document as application/xml or
> text/xml, without an XHTML doctype, 

Personally I tend to use application/xml for various reasons, but I
don't think the above is true. The relevant RFC is rfc3236 defining
xhtml+xml which is explictly aimed at languages defined via xhtml
modularisation, thus includiing xhtml+mathml+svg.



      With respect to XHTML Modularization [XHTMLMOD] and the existence of
      XHTML based languages (referred to as XHTML family members) that
      are not XHTML 1.0 conformant languages, it is possible that
      'application/xhtml+xml' may be used to describe some of these

Thus serving the document as application/xhtml+xml with an  XHTML+MathML
doctype is perfectly standards conformant, and works in browsers even,
although sadly google doesn't seem to like it too much. If you serve the
pages as application or text /xml google does seem to index them correctly
see for example 


which today, from here, returns the (xslt styled) text/xml document


as the first hit.

Received on Monday, 21 April 2008 19:59:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:18 UTC