Re: text functions in MathML

There was a conscious decision in the 
working group to leave string operations 
to the "extension" mechanism. In particular 
we also left out  programming constructs such as 
assignments, loops and conditionals.

A main early goal was to keep the recommendation 
focused on the passive representation of 
basic algebraic constructs. There
are perfectly good string algebras,
of course.

Your question implicitly raises the
question of whether the content of 
<ci>abc</ci> is treated as atomic or not?
Yes and No answers are both acceptable.

If the ci elements are regarded as 
the alphabet symbols then 

    concat( "a" , "b" , "c" )

could be written

<apply><times definitionURL="stringop" />

Alternatively, we could view the ci tags like string
delimiters (with extra restrictions on the content of
the ci) and then 

   concat( "abc" , "def" ) 

could be written.

<csymbol definitionURL="concat"/>


substring( "abc" , 0 , 2 )  // "ab"

would be

<csymbol definitionURL="substring"/>

Ideally, the definitionURL's would point to where such
design decisions were documented.

Both examples are valid MathML.  

Stan Devitt

---- Original message ----
>Date: Thu, 8 Aug 2002 13:09:20 -0700 
>From: Herman Schenck <>  
>Subject: text functions in MathML  
>To: "''" <>
>I have been looking to extend MathML to handle text functions
>"substring" and "concat".  
>Is there any accepted way of doing this?
>One problem I see is that string constants do not have their
own tag.

Received on Thursday, 8 August 2002 17:24:52 UTC