Christoph wrote:
Hi,
I want to place some xmlns-namespace definitions to the top of a page.
The xmlns stuff is collected during the parsing process by an extension
and should then be placed once to the page (anywhere at the beginning)
I already tried to do this with ParserAfterTidy and
OutputPageBeforeHTML. This works but these hooks are also fired after
each call of my extension (and not at the end of the whole site parsing
process as I expected).
Would be glad about a solution :-)
Maybe you could add your xmlns to the $wgXhtmlNamespaces array ?
DefaultSettings.php got an example:
$wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
That was added in r18943 [1] to fix bug #7667 [2]
[1]
http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=18943
[2]
http://bugzilla.wikimedia.org/show_bug.cgi?id=7667
--
Ashar Voultoiz - WP++++
http://en.wikipedia.org/wiki/User:Hashar
http://www.livejournal.com/community/wikitech/
IM: hashar(a)jabber.org ICQ: 15325080