[Om3] Refactoring cd2html.xsl: where and how is it used?

Christoph LANGE ch.lange at jacobs-university.de
Tue Sep 9 18:15:44 CEST 2008


On Tuesday 09 September 2008 16:19:19 David Carlisle wrote:
> It's probably OK to refactor it, although normally in xslt it shouldn't
> really be necessary, if you xsl:import cd2html.xsl into your own
> stylehseet then you can overide any templates as the templates in your
> stylesheet have higher import precedence.

Sure, I'm already xsl:importing it, but still I wouldn't be able to reuse
large parts of cd2html.xsl.  E.g., the template matching <CD/> contains a lot
of code, part of which I'd like to reuse.  And if I reimplement many features
of cd2html.xsl in my own, slightly different way, any update of the XSLT for a
newer OpenMath version would be harder to maintain, as both of us would have
to do more work.

So I'll do the refactoring and test it carefully by regenerating the XHTML
files.

Cheers,

Christoph

-- 
Christoph Lange, DERI Galway/Jacobs Univ. Bremen, http://kwarc.info/clange

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://openmath.org/pipermail/om3/attachments/20080909/e584e4b5/attachment.pgp 


More information about the Om3 mailing list