LaTeX to XML with XSLT
Monday, 1. May 2006, 14:14:22
After reading article about possibility (or lack of such) of transforming LaTeX into XML using XSLT, I decided to find out myself whether it is possible to employ XSLT in such transformations. If so, then one can consider LaTeX (certain subset of notations) among markup languages that fit into XML + XSLT + CSS framework.
I think it is worth to investigate this issue, because if it will turned out that XSLT style sheet that transforms compact non-XML input like LaTeX into XML exists, is relatively small and fast enough then using it on client side makes sense. At least for me using XSLT sounds to be more reasonable then taking Javascript approach for transforming markup (I don't like XSLT but for some strange reason I strongly prefer idea of style sheet to idea of scripting).
To illustrate what I mean I prepared couple of XHTML pages (simple article and unfinished version of torture page) with embedded LaTeX formulae (works in Opera 9 only). LaTeX source is transformed into XML using XSLT and rendered with CSS.
XSLT part is not finished yet and it is hard to say how fast final version will be,
but in any case it shows that possibility exists and sounds to be realistic.
I think it is worth to investigate this issue, because if it will turned out that XSLT style sheet that transforms compact non-XML input like LaTeX into XML exists, is relatively small and fast enough then using it on client side makes sense. At least for me using XSLT sounds to be more reasonable then taking Javascript approach for transforming markup (I don't like XSLT but for some strange reason I strongly prefer idea of style sheet to idea of scripting).
To illustrate what I mean I prepared couple of XHTML pages (simple article and unfinished version of torture page) with embedded LaTeX formulae (works in Opera 9 only). LaTeX source is transformed into XML using XSLT and rendered with CSS.
XSLT part is not finished yet and it is hard to say how fast final version will be,
but in any case it shows that possibility exists and sounds to be realistic.