Sorry for resurrecting this thread…
Could Xwiki also provide a way to apply such a transformation while saving a page, such that the transformation does not have to be applied every time the page is rendered? The WikiWord transformation explicitly warns about possible performance impacts for larger pages.
Obvious drawbacks of the “transform on save” solution would be that
- the transformation has to be aware of the current page syntax and must know how to achieve it’s intended effect using appropriate syntax constructs
- the transformation’s results are “hard coded” in the page after saving, so updating the transformation (e.g. with a fix / new features) will not help for already saved pages
- the transformation has to be idempotent, i.e. make sure it doesn’t mess up the page in case an already transformed page is being edited again
Mh, maybe this approach wouldn’t be such a good idea after all, but I’d still be curious if it would be possible.