W3C home > Mailing lists > Public > www-math@w3.org > October 2002

Re: declare element in ctop.xsl

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 7 Oct 2002 13:03:11 +0100
Message-Id: <200210071203.NAA15379@penguin.nag.co.uk>
To: torstenknodt@datas-world.de
CC: www-math@w3.org

> in ctop.xsl declare elements are simply removed.

yes, admitedly this is a bit minimal but I claim it is just about
conforming behaviour. Ideally one ought to take note of it and (for
example) render vectors in bold (or whatever) but doing so might have a
noticeable effect on the speed of client side transformations that are
happening in real time. Most of the "ctop" transformation is fairly
local but handling declare requires you to have some information with
global scope for the mathml expression. It may be that some clever use
of xslt keys might optimise this and I should look at that
again. However when I originally wrote that, last year some time, I had
several examples on which mozilla's xslt was taking several minutes to
do the transform, so slowing it down more wasn't an option. Mozilla (and
Netscape 7) have much faster XSLT these days.

Note however that the declare element itself should not be rendered.
it just affects the interpretation of subsequent uses of the identifier,

  <ci> A </ci>
    <ci> a </ci>
    <ci> b </ci>
    <ci> c </ci>

should produce no output, but later uses of  <ci> A </ci> within the
same scope ought to be rendered as an identifier denoting a list (if
that is different from the normal rendering of an identifier, eg
different font) and in a system that is interpreting the mathematics (as
opposed to just rendering it) references to A should be interpreted as
refering to the list (a,b,c).


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
Received on Monday, 7 October 2002 08:03:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:32 UTC