From: ben <nic...@li...> - 2003-07-02 18:46:48
|
James Devenish a écrit : > However, thanks to your prompting, perhaps we can come to a compromise: > we will still use the long, monolithic "scape" template but it will be > generated from a mapping file (not hand-coded). > Hi, If it can be of some help, in dblatex I use an engine to build the entities translation template. The attached files (used for MathML translation): map2func.xsl is the template to apply on mapmmlent.xml. The output is a stylesheet containing the templates, each template name corresponding to a <mapgroup> name. Of course the code produced is ugly, but it works fine, and it is fast enough. For instance, applying the scape template on a test file takes 147.1 s, using the produced template takes 96 s. Bye, BG |