> I am not on solid ground with XSLT but it seems to me that the XSL
> stylesheet being used could be modified to tag the CDATA  LaTeX code
> usefully for XHTML use instead of merely deleting it from the output.
> I am also not sure that the required <script> reference to the
> LatexMathML or MathJax Javascripts could be accommodated in some
> manner by this process or not. The verbatim Javascript code for
> LatexMathML does not have to  be part of the document. It can be
> referenced as a resource by URL ina <script> element. But at a minimum
> if the LaTeX code can be preserved and tagged usefully during the
> transformation process, the the same Asciidoc text file could be used
> to generate XHTML and PDF using a2x with the LaTeX code preserved in
> both cases. The worst thing that could happen in this case is that
> without the <script> reference manually added for LatexMathML or
> MathJax Javascripts, the LaTeX code would render as plain text, which
> would be a clue that something more has to be done.
>

Hi again David,

I'm sure Stuart would add a custom xsl stylesheet that does this to
the distribution if it was available.

Note that asciidoc uses standard docbook-xsl stylesheets unmodified
since they are shared with other applications.  But you could make a
customisation layer see:
http://www.sagehill.net/docbookxsl/CustomMethods.html.

For math you probably want to look at this:
http://www.sagehill.net/docbookxsl/Math.html

Cheers
Lex

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to