If you add the following to during the response cycle that contains the
MathML stuff, you'll get the correct headers:
S.setDocType(Full("""<?xml-stylesheet type="text/xsl"
href="../classpath/css/mathml.xsl"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">"""))
It should work the way you want it to.
On Mon, Jul 13, 2009 at 5:37 PM, Gonzalo N <[email protected]> wrote:
>
> Hello.
> I am using MathML to present some mathematical formulas in my page,
> but in order to do some of the mathematical render, I need to add in
> the top of the page this code:
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="../classpath/css/mathml.xsl"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
> TR/xhtml11/DTD/xhtml11.dtd<http://www.w3.org/%0ATR/xhtml11/DTD/xhtml11.dtd>
> ">
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://
> liftweb.net/" xml:lang="en">
> <head>
> ....
>
> When I am in the browser and see the source code of the page, it
> appears all the previous heading, except the xml-stylesheet tag,
> probably because I didn't defined it in the boot.
> Does anyone knows where and how do I set the <?xml-stylesheet?> in the
> Boot.scala class?
>
> Thank you.
>
> Regards,
> Gonzalo N
>
> >
>
--
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---