Hi,
Try this :
$renderer->doc .= p_render('xhtml', p_get_instructions($match), $notused );
but this is quite expensive : DW has to create a new parser to break the markup into instructions, and then a new html renderer in order to convert the instructions into html. At least, if possible, consider calling p_render(...) in your
handle() method as the result will be cached by DokuWiki.
Below, I'm doing some divination, so what follows may be completely wrong...
j0jo01 wrote
I'm trying to make a Plugin which applies XSLT templates on XML files at runtime and outputs a file in the DokuWiki syntax.
I guess this means the XML is not embedded in the page but is in an external file and the page only holds the filename. In this case, you should probably think of adding the external file as a page dependency. I am not quite sure, but I think that without this, if the XML is updated, your plugin will have no way to notice this, and the change won't be reflected in the html until the page source is modified. If you experience this, move all the XSLT and html generation in the render() method, only save the xml filename in the handle method, and take a look at the
source plugin; it adds an element to
$renderer->meta['relation']['haspart'] to address this same problem (I think).
/Schplurtz