Hello,
A wiki is probably the best way to share documents and informations...
why not **structured** informations, like xml ?
PROBLEMS
Allowing xml tags is different from html or xhtml tags in one aspect:
namespaces.
1)Namespaces appear in:
- the tags (exemple: tei:page, dc:title, rdf:Alt, doc:formula ...)
- the attributes (xml:lang, ...)
- in the css example:
rdf\:li.block {display: block; font-weight: bold;}
2)Namespaces Declarations appear in:
- the main __html__ tag of the html/xhtml document
*exemple:
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:jw="http://jspwiki.org"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:tei="http://www.tei-c.org/" >
*Actual difficulty:
a list of allowed namespaces doesn't only come to allow the tag, but
also fill the template html tag with the namespace and its refered url
- any tag
*Actual difficulty:
Mediawiki recognises a link in the namespace declaration and thus
transformes it :
<my:tag xmlns:my="http://my.url"> BECOMES <my:tag
xmlns:my="<a
href="
http://my.url="" class="external"
title="http://my.url">http://my.url">
- in the css
at the top (not yet compulsory as far as I know):
@namespace tei
url(http://www.tei-c.org/);
SOLUTIONS
1) BARBARIAN solution:
commenting the a good deal of the mediawiki/include/parser.php function
removeHTMLtags( $text )
2)Future maybe
As for today, the white list of tags and attributes doesn't support
addition of namespace tags (tei:page) nor just namespace (tei).
QUESTIONS
Has any one an idea of how to implement an "allow xml namespace" system
in Mediawiki?
François Parlant