Re: does it really exist any xhtml 2?



Michael Fesser wrote:
.oO(Lachlan Hunt)

There's your first mistake with attempting to use XHTML. It is advisable for you to not use .html as the file extension, but rather .xhtml, .xht or .xml

Or no extension at all.

Yes, while I agree the file extension should be left off the URI, most editors and browsers aren't configured to work with files with no extension from the local file system.


because at least then (when working from your local file system) good browsers will actually parse it as XML, not tag soup, and your web server will more likely serve it with the correct MIME type (assuming it's been configured to serve XHTML, which you may have to do yourself). text/html, which is commonly associated with .html files, is *wrong* for XHTML.

MIME types and file extensions are two completely different things.

Yes, I know, but common file extensions are commonly associated with with specific MIME types.


The first is important, the second completely irrelevant in the WWW. You can
name your files whatever you like, as long as the server delivers them
with the correct content type.

While that is true, it is easier for a beginner to start learning by at least using appropriate file extensions which are more likely to match the server configuration. Also, good browsers/editors are configured to recognise .xhtml, .xht, .xml, etc. as XML when working from the local file system. Of course you could give your file a .foo extension, but no browser, editor or server would be configured by default to recognise it.


--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
.



Relevant Pages

  • Re: document.write() in the middle of a document?
    ... > does anyone know of any javascript method that does the same job as ... It is interesting that document.write is taboo in xhtml 1.1 served ... browsers including Opera and the Mozilla family(Mozilla, Firefox, ... Netscape) become extremely strict and parse the code as xml. ...
    (comp.lang.javascript)
  • Re: XHTML question
    ... page on the web that someone views is not xhtml unless it is served as ... application/xml, text/xml or text/html. ... Whether or not browsers *treat* it as XML, ...
    (alt.html)
  • Re: XHTML or HTML 4 ?
    ... >> Concerning xhtml 1.1, it can be used if you make the effort to learn it ... >> At a minimum, in addition to writing valid html 1.1 code, you ... >> as a CSS body background color one on the Mozilla family browsers. ... >> page not to display or just give an xml error message. ...
    (alt.html)
  • Re: XHTML replaced by XML ?
    ... That sounds like nonsense as XHTML is an XML application so XHTML is XML already. ... The W3C wanted to replace HTML with XHTML by starting with XHTML 1.0 and allowing it to be authored and served backwards compatible with HTML browsers to move on to XHTML 1.1, mixed namespace XML documents with XHTML and/or MathML and/or SVG to arrive at XHTML 2.0 and XForms. ...
    (comp.text.xml)
  • Re: DMProcessConfigXML CM_MAPPINGS
    ... documentation says is used for the standard mappings - and user mappings start at 0x1000000. ... Also while the first code example is 99% correct, you should free the returned string pointer with free not LocalFree e.g. ... /// Configuration Service Providers process ... /// and returns metadata for any XML parm elements ...
    (microsoft.public.dotnet.framework.compactframework)