Description

Have Moin generate pages which are valid XHTML documents

Pages generated by Moin are (mostly) valid HTML 4.01, but not XHTML 1.0 strict (nor upper revisions of XHTML like 1.1).

Note: Even if it seems to be a well known problem (it is both mentioned as an issue in the changelog for moin version 1.2, dated 2004-02-20, and discussed about in DeronMeranda/ChallengesWithXHTML), no feature request exists for this. That's why I'm adding this page.

I find this feature quite important for a couple of reason:

  1. my primary interest is in writing moin macros which will have as output various XML dialect (though mainly MathML), as long as moin does not output valid XML documents it is pointless to have them

  2. having moin output valid XML documents will enable using moin not only as a final component of web based architecture, but also as an intermediate component which output will be post processed by other applications able to process XML documents

In DeronMeranda/ChallengesWithXHTML it is argumented that the proper solution for easily outputting XHTML would be to switch to an internal tree based representation for pages. Even if I agree with that, I found that XHTML output could be achieved even without that big architecture change, at least for legacy parsers. It is just a matter of tune them so that tags are output balanced.

I'm (StefanoZacchiroli) willing to work on that producing a patch. Still, before doing so, I would like to know if such a patch would be interesting for Moin developers and if it can clash with some development directions for moin 1.6.

Patches

Here I (StefanoZacchiroli) will collect the work in progress patches I'm producing. I'm not considering adding patches under MoinMoinPatch until a decent result (like valid XML output) has been reached. If Moin developers want to review/commit my patches before that it would of course be great!

Discussion


CategoryFeatureRequest

MoinMoin: FeatureRequests/ValidXHTMLOutput (last edited 2010-01-19 19:09:50 by MarkusMajer)