Re: [Wikitech-l] Serving as xhtml+xml

2009-03-19 Thread Alexandre Emsenhuber
Le 19.3.2009 4:46, « lee worden » won...@riseup.net a écrit : Attached is a patch for the skins directory that allows changing the Content-type dynamically. After applying this patch, if any code sets the global $wgServeAsXHTML to true, the page will be output with the xhtml+xml content

Re: [Wikitech-l] Serving as xhtml+xml

2009-03-19 Thread Aryeh Gregor
2009/3/18 lee worden won...@riseup.net: Attached is a patch for the skins directory that allows changing the Content-type dynamically.  After applying this patch, if any code sets the global $wgServeAsXHTML to true, the page will be output with the xhtml+xml content type.  This seems to work

Re: [Wikitech-l] Serving as xhtml+xml

2009-03-19 Thread Brion Vibber
What's to patch? This is already a configuration variable, just set it... -- brion vibber (brion @ wikimedia.org) On Mar 18, 2009, at 21:24, Andrew Garrett agarr...@wikimedia.org wrote: 2009/3/19 lee worden won...@riseup.net: I'm at work on a MW extension that, among other things, uses

Re: [Wikitech-l] Serving as xhtml+xml

2009-03-19 Thread lee worden
This has been done before, for instance in the ASCIIMath4Wiki extension [2].  I don't want to change the Content-type unconditionally, though, only some of the time, so that we can serve texvc-style images to browsers or users that don't like the modified content type. Note that this will

[Wikitech-l] Serving as xhtml+xml

2009-03-18 Thread lee worden
I'm at work on a MW extension that, among other things, uses LaTeXML [1] to make XHTML from full LaTeX documents. One feature is the option to render the equations in MathML, which requires the skins to be patched so that they output the page as Content-type: application/xhtml+xml instead of

Re: [Wikitech-l] Serving as xhtml+xml

2009-03-18 Thread Andrew Garrett
2009/3/19 lee worden won...@riseup.net: I'm at work on a MW extension that, among other things, uses LaTeXML [1] to make XHTML from full LaTeX documents.  One feature is the option to render the equations in MathML, which requires the skins to be patched so that they output the page as