W3C home > Mailing lists > Public > www-math@w3.org > March 2004

RE: error : implementing mathml on my website

From: Eduardo Tabacman <eduardot@dessci.com>
Date: Mon, 8 Mar 2004 10:37:10 -0800
Message-ID: <46566A3075DDD311969100E0811031EC0559AED0@euclid.dessci>
To: pas.faut@free.fr, www-math@w3.org

I think the problem is that PHP expects anything starting with
<? to be PHP code.
Try echoing it instead:
<? echo "<?import namespace='m' implementation='#MathPlayer' ?".">" ?>
or insert some blank php to separate < and > from ?:
<<? ?>?import namespace="m" implementation="#MathPlayer" ?<? ?>>

See, for example,
http://us2.php.net/manual/en/language.basic-syntax.php#language.basic-syntax
.phpmode

eduardo.

> -----Original Message-----
> From: pas.faut@free.fr [mailto:pas.faut@free.fr]
> Sent: Saturday, March 06, 2004 1:32 AM
[..]
> <?import namespace="m" implementation="#MathPlayer" ?>
[..]
> Here we are. The line <?import namespace..... create a parse 
> error. Php seems 
> to believe that it is not xml language....what must i do ??>
<title>main</title>
>   <meta http-equiv="Content-Type" content="text/html" />
> 
> <object id="MathPlayer" classid="clsid:32F66A20-7614-11D4-BD11-
> 00104BD3F987"></object>
> 
> <?import namespace="m" implementation="#MathPlayer" ?>
> 
> 
> </head>
> 
> <body bgcolor="#F9EC93" text="#993300">
> 
> 
> <? $i = $debut_page1 + 6 ; $j= $debut_page2 + 6 ?>
> <? $k = $debut_page1 - 6 ; $l= $debut_page2 - 6 ?>
> <? $pageG = 1+2*($debut_page1/6) ; $pageD = $pageG + 1 ?>
> <center><a href='mainMaths.php3?debut_page1=<? echo "$k" 
> ?>&debut_page2=<? 
> echo "$l" ?>'>page précédente</a>-- .....
> 
> Here we are. The line <?import namespace..... create a parse 
> error. Php seems 
> to believe that it is not xml language....what must i do ??
> 
> 
> Thank you for your answers.
> 
> Pascal
> 
> 
Received on Monday, 8 March 2004 13:38:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:56 GMT