Last modified: 2010-08-13 21:02:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26784, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24784 - define XML namespace for XML dumps
define XML namespace for XML dumps
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
1.17.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-13 14:46 UTC by Daniel Kinzler
Modified: 2010-08-13 21:02 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2010-08-13 14:46:07 UTC
It would be useful to define an XML namespace for thze XML dump format. This would allow us to embed elements from that output in other XML documents easily. 

There is already an XML schema defined for this output, adding a namespace would be trivial. It could even use the same URI: http://www.mediawiki.org/xml/export-0.4

In practice, this would mean that the top level <mediawiki> tag returned
by the exporter would become:

<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.4" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.4/ http://www.mediawiki.org/xml/export-0.4.xsd" version="0.4" xml:lang="de">

This should have no impact whatsoever on backward compatibility, except perhaps
for programs processing the XML using naive regular expressions. I believe it
would be ok to break those, since they rely on things that are never guaranteed
in XML.
Comment 1 Daniel Kinzler 2010-08-13 19:58:34 UTC
actually, if i understand xsi:schemaLocation correctly, it already sais that 
<http://www.mediawiki.org/xml/export-0.4.xsd> is the schema for namespace <http://www.mediawiki.org/xml/export-0.4/>. However, as far as I know, the namespace would still need to be applied to the present XML document explicitly, using an xmlns attribute.
Comment 2 Bawolff (Brian Wolff) 2010-08-13 20:09:26 UTC
Umm, the dumps I'm looking at have http://www.mediawiki.org/xml/export-0.4 as their namespace... (I looked at both special:export output, and chwikibooks dumps)
Comment 3 Daniel Kinzler 2010-08-13 21:02:18 UTC
Ahhhh! Firefoxes pretty XML formatting thingy hides the namespace attributes! ugh. closing as invalid. sorry folks :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links