You should be aware that any page that has a form in it is not likely to render as correct XHTML, because that will probably come from core Django, which uses HTML5 these days (it tends to render with XHTML 'style', because of history, but it is no longer attempting to generate code that validates under XHTML rules).

You need to be clear which XHTML you are aiming at. Are you going for XHTML 1.0 Transitional/Strict? If so, that is a major disadvantage, since it doesn't include things like <input type=email> etc., or anything modern really. XHTML 1.0 is dead. The only thing that XHTML used to give you that HTML didn't was being able to include SVG inline. But you can do that in HTML5 now.

If you are going for XHTML5, that seems fairly pointless - HTML5 explicitly allows both XHTML and HTML style tags (e.g. <br> and <br/>), while XHTML5 just disallows the <br> style. So using XHTML is only likely to give you more headaches (e.g. case sensitive CSS selector matching and other subtleties https://wiki.whatwg.org/wiki/HTML_vs._XHTML )

In other words, XHTML 1.0 is dead and XHTML5 is pointless. If you have a policy that you need to meet, you can tell them that XHTML (1.0) has been superseded by HTML5.

Regards,

Luke

On 21/04/15 15:03, Josh Cartmell wrote:
I would change the doctype in my base.html template and then go through and fix anything that doesn't meet the xhtml spec. I'm not sure how much there will be to fix so that may or may not be a very tedious process.

Good luck!

On Tue, Apr 21, 2015 at 3:50 AM, Nicola <nicola.vitu...@gmail.com <mailto:nicola.vitu...@gmail.com>> wrote:

    Hi all,

    is there an easy way to "convert" Mezzanine to use the XHTML
    standard rather than HTML 5?

    Thanks,

    Nicola
-- You received this message because you are subscribed to the Google
    Groups "Mezzanine Users" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to mezzanine-users+unsubscr...@googlegroups.com
    <mailto:mezzanine-users+unsubscr...@googlegroups.com>.
    For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com <mailto:mezzanine-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
"In your presence there is fullness of joy; at your right hand are
pleasures forevermore" Psalm 16:11

Luke Plant || http://lukeplant.me.uk/

--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to