On Dec 1, 2003, at 10:29, jakob.voss@s1999.tu-chemnitz.de wrote:
Hi,
I'm working on a XML representation of Wikipedia articles [[meta:Wikipedia DTD]]
- the XML export function [[XML import and export]] is a step forward
to this but I do not understand what the element "restrictions" may contain:
So what is the purpose of table 'cur_restrictions'? Are there any other restrictions but 'sysop' or why it is not just a boolean value?
It's a comma-separated list of tags which may be present in a user's user_rights field (again, as a comma-separated list of tags). I don't think the software fully supports this model yet (as we don't use anything more complex that "" / "sysop" on Wikipedia) but that's the theory.
Some bugs and wishes for the next update of SpecialExport.php:
- add an XML header ("<?xml version='1.0' encoding='UTF-8'?>")
Hmm, yes that was supposed to be there. Must have forgot...
- replace the attribute 'xml:ns' with something like 'interwiki' or
'language'. Please avoid attributes starting with 'xml:'. 'xml:lang' is not the best choice neither since there are MediaWikis like wiktionary and meta that does corespondent to languages.
xml:ns??? That's really supposed to be xml:lang! And it's only meant for the language. If it's ever something other than a language code, let me know, cause that would be a bug. It should be pumping in the value of $wgLangCode, which is what we send out as the Content-Language and the LANG attribute on the HTML element in our web page output.
- include 'cur_counter'
cur_counter is not an attribute of a wiki page.
BTW: What about the new namespaces 8 => "MediaWiki", 9 => "MediaWiki_talk" ??
These are for the interface string editing.
-- brion vibber (brion @ pobox.com)