#433 XSLT Mandelbrot
Playing with Joel Yliluoma’s demonstration of the power of XSLT: generating a Mandelbrot set, rendered with HTML.
Notes
I found this featured on The Daily WTF back in the day. The original author is Joel Yliluoma
The mandelbrot.xml defines the parameters of the Mandelbrot set, and the colour mapping for magnitudes. The calculation of the Mandelbrot set is performed by the transform mandelbrot.xsl.
I am running this on macOS, and using xsltproc, which is installed by default as part of the libxslt. I use this to perform the transformation:
xsltproc mandelbrot.xsl mandelbrot.xml > mandelbrot.html
The resulting image:
I modified some parameters in mandelbrot2.xml and generated a new image:
xsltproc mandelbrot.xsl mandelbrot2.xml > mandelbrot2.html

