This is configurable in the web.xml

<!-- Just an example -->
<mime-mapping>
    <extension>xsd</extension>
    <mime-type>text/xml</mime-type>
</mime-mapping>


However, this will not take in consideration that IE blows.

Serving a correct DOCTYPE declaration in combination with omitting the
xml-declaration will put FF, Chrome etc into standardsmode but IE in tag
soup.

As per: http://en.wikipedia.org/wiki/XHTML#DOCTYPEs
"XML declaration

A character encoding <http://en.wikipedia.org/wiki/Character_encoding> may
be specified at the beginning of an XHTML document in the XML declaration
when the document is served using the application/xhtml+xml MIME type. (If
an XML document lacks encoding specification, an XML parser assumes that the
encoding is UTF-8 <http://en.wikipedia.org/wiki/UTF-8> or
UTF-16<http://en.wikipedia.org/wiki/UTF-16>,
unless the encoding has already been determined by a higher protocol.)

For example:
<?xml version="1.0" encoding="UTF-8"?>

The declaration may be optionally omitted because it declares as its
encoding the default encoding. However, if the document instead makes use of
XML 1.1 or another character encoding, a declaration is necessary. Internet
Explorer <http://en.wikipedia.org/wiki/Internet_Explorer> prior to version 7
enters quirks mode <http://en.wikipedia.org/wiki/Quirks_mode> if it
encounters an XML declaration in a document served as text/html."


Does this help?


Cheers,

Viktor


On Thu, Feb 19, 2009 at 12:19 AM, David Pollak <
feeder.of.the.be...@gmail.com> wrote:

> Folks,
> There may be differences between statically served pages and Lift served
> pages.  Lift serves pages with application/xhtml+xml Content-Type.  This
> puts browsers like Firefox into a standards mode (rather than the default
> "quirks" or "tag soup" mode.)  The same page may look different and/or
> behavior differently between the two modes.
>
> Thanks,
>
> David
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Git some: http://github.com/dpp
>
> >
>


-- 
Viktor Klang
Senior Systems Analyst

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to