frankdressel/wikiview — Issue #33: Better templates for transforming to html
Author: frankdressel
Created: 2012-02-22 08:42:50+00:00
State: open

So far, there is a file for specifying the replacements, which should be done on the Wiki text to get the wanted output. So far, this is done with specifying regular expressions to search for and additionally regular expressions to substitute. These two kinds of expressions are used in the String.replaceAll() method.

Although this is a working approach and decouples the output format from the source code, it leads for the html cnversion to monsters like:
(.*

.*?)(.*?\d+)(.*?)(<\/i>)(.*)\[ref:\2:ref\](.*)	2	$1$2$3$4$5$6$7$4$8

Maybe, a better way would be to convert it to simple xml and afterwards use xslt for the conversion?