From: Reini U. <ru...@x-...> - 2002-12-16 17:01:01
|
Matti Airas schrieb: > Has there been any discussion whether PhpWiki should be converted to use > internally an XML-based page format and to render the pages on-screen > using XSL transforms? That would be great in the sense that after that > it would be awfully easy to interface PhpWiki with other tools > (outputting pages in Docbook/LaTeX/WAP/XHTML basic/whatever, parsing the > pages easily with external tools etc.). I suppose it would also make > things such as optional Java applet -based wysiwyg editors easier to > implement. easier. we use internally the wiki-format, during the output step we use jeff's XmlElement library which is able to dump as valid XML or HTML. e.g. you can save as HTML or XML and convert to other formats externally. BTW: I recently rewrote jeff's HtmlElement library in a simple and reusable manner. just functions, no classes, in a syntax similar to perl's CGI (not HTML::Element) http://xarch.tu-graz.ac.at/home/rurban/software/html-lib.phps http://xarch.tu-graz.ac.at/home/rurban/software/html-lib.php.gz for example: echo html_tr(html_td(array(colspan=>$colspan),NBSP)); echo html_tr(array(valign=>"top"), html_td(array(align => "right"), html_img(array(src=>"img/icon_ampel_rot.gif",alt => "Fehler", width => "20", height => "20")), NBSP, NBSP), html_td(array(colspan => $colspan-1), html_div(array('class' => $arr['type']),$msg))); |