W3C home > Mailing lists > Public > www-math@w3.org > December 2014

Re: Make testsuite usable for non browser applications

From: Paul Libbrecht <paul@hoplahup.net>
Date: Thu, 25 Dec 2014 23:13:00 +0100
Cc: www-math@w3.org
Message-Id: <3C64FF0F-9A5D-4626-9AD3-6149B20FBE8B@hoplahup.net>
To: Regina Henschel <rb.henschel@t-online.de>

there's quite a few other variants than the mml files available.
I'm considering the test case Presentation/GeneralLayout/mfrac/mfrac7 as a sample.

The source files are the ".xml" files, they use an internal document structure. Here's an example:

The XHTML files have proper namespaces: e.g.:
or  http://www.w3.org/Math/testsuite/build/main/Presentation/GeneralLayout/mfrac/mfrac7-plain.xhtml

The .mml file has been prepared for inclusion in bigger pipelines, some of which are not namespace aware (in particular, anything to do with HTML5 tends to consider namespaces rather impolite). However, note that injecting the xmlns attribute by string manipulations is probably quite safe, since the files are all automatically produced by the same xml-generator. To date, there's no very formal requirement about the xml specifics about .mml files since we have no formal interop requirement. E.g. for some older apps such as Maple, it may be even better to make it with the m prefix.

If you wish that we make alternate mml files with namespaces, it is probably doable by changing our script (an apache jelly script) but wouldn't you need more than the .mml files? E.g. the png-files as comparisons or the comments?



On 25 déc. 2014, at 21:50, Regina Henschel <rb.henschel@t-online.de> wrote:

> Hi,
> ODF uses MathML 2.0 for mathematical content. For Apache OpenOffice and for LibreOffice, ODF is the native format. I'm going to improve them in regard to mathematical content. I want to use the testsuite from http://www.w3.org/Math/testsuite/. I found, that the .mml files do not have a namespace in their root math element. That makes it inconvenient to use them. I need to add xmlns="http://www.w3.org/1998/Math/MathML" in each case.
> Therefore I ask you to provide the .mml files with included namespace. A separate testsuite without any html environments is desirable.
> Kind regards
> Regina
Received on Thursday, 25 December 2014 22:13:28 UTC

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