Sunir Shah wrote:
>I've greatly updated the dusty WikiSyntax list with a view
>towards a wiki parser model and then a wiki interchange format
>by the end of the year. Please feel free to add anything and
>everything to the site. Best practices would be appreciated,
>including algorithms (e.g. how to compute numbered headings
>efficiently, etc.), syntaxes, and other useful hints on what
>to do.
>
>
>
fyi, there've been discussions on the Interwiki list [1] regarding
interchange, the following is my own personal take on these.
IMHO the best bet for Wiki interchange is XHTML over (RESTful) HTTP. All
Wikis currently have something approaching WikiText -> XHTML conversion,
for the normal rendering of their pages. As most Wikis use WikiText
format in their backend store, for interchange the conversion XHTML ->
WikiText would also be required. For this purpose I put together the
following stylesheet :
> (little subset of) XHTML -> XSLT -> (little subset of) MoinText
First (rough!) pass at :
http://dannyayers.com/2004/03/interwiki/moin.xsl
Sample input:
http://dannyayers.com/2004/03/interwiki/xhtml.xml
Sample output:
http://dannyayers.com/2004/03/interwiki/wiki.txt
blogged:
http://dannyayers.com/archives/002321.html
The stylesheet (so far) came out remarkably self-explanatory - I think once
we get one of these right for e.g. Moin, it should be pretty easy for other
Wiki users to port it. Wiring up the XSLT engine is another matter of
course...
Cheers,
Danny.
[1] https://lists.sourceforge.net/lists/listinfo/interwiki-discuss