Tim, Scala's XML parser ignores the DOCTYPE header.
To fix this, in Boot: ResponseInfo.docType = { case _ if S.getDocType._1 => S.getDocType._2 case _ => Full(DocType.xhtmlStrict) } Thanks, David On Thu, Sep 18, 2008 at 5:27 AM, Tim Perrett <[EMAIL PROTECTED]> wrote: > > Guys, > > I have this DTD in my layout: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// > www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > xmlns:lift="http://liftweb.net/"> > > And lift is replacing it with: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// > www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xml:lang="en" xmlns:lift="http://liftweb.net/" xmlns="http:// > www.w3.org/1999/xhtml"> > > I don't need transitional, my code is fully strict valid. The > transitional DTD is screwing parts of my layout so I really need to > use the strict one. > > Has anyone seen this before? > > Cheers > > Tim > > > -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---