Re: Is it so hard to generate compliant software ?

Here is an example using IE6, SvgViewer 3.0 and Mathplayer 1.0 beta 4.
Please note, that i don't use the universal MathML stylesheet (UMSS) here,
since nothing comparable exists for Svg. So the resulting document
XHTML/Presentation MathML/SVG is unfortunately not cross-browser enabled.

<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:g="http://www.w3.org/2000/svg"
      xmlns:m="http://www.w3.org/1998/Math/MathML">
<head>
  <title>SVG/MathML</title>
  <object id="MathPlayer"
classid="clsid:32f66a20-7614-11d4-bd11-00104bd3f987"></object>
  <object id="AdobeSVG"
classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
  <?import namespace="g" implementation="#AdobeSVG"?>
  <?import namespace="m" implementation="#MathPlayer"?>
</head>
<body>
  <h2>SVG and MathML</h2>
  <p>In SVG a homogenous transformation matrix looks like this.<p>
   <p>
    <m:math>
     <m:mrow>
      <m:mi>T</m:mi><m:mo>=</m:mo>
       <m:mo>(</m:mo>
        <m:mtable>
         <m:mtr>
          <m:mtd> <m:mi>a</m:mi> </m:mtd>
          <m:mtd> <m:mi>c</m:mi> </m:mtd>
          <m:mtd> <m:mi>e</m:mi> </m:mtd>
         </m:mtr>
         <m:mtr>
          <m:mtd> <m:mi>b</m:mi> </m:mtd>
          <m:mtd> <m:mi>d</m:mi> </m:mtd>
          <m:mtd> <m:mi>f</m:mi> </m:mtd>
         </m:mtr>
         <m:mtr>
          <m:mtd> <m:mn>0</m:mn> </m:mtd>
          <m:mtd> <m:mn>0</m:mn> </m:mtd>
          <m:mtd> <m:mn>1</m:mn> </m:mtd>
         </m:mtr>
        </m:mtable>
       </m:mrow>
      <m:mo>)</m:mo>
     </m:mrow>
    </m:math>
   </p>
  <p>
  <p>
  Here is how we use it.
  </p>
  <p>
    <g:svg width="200" height="150">
      <g:text transform="matrix(0.5,0.866,-0.866,0.5,10,40)"
              stroke="darkslateblue" fill="lightblue" font-size="60"
              font-family="Comic Sans MS">SVG</g:text>
    </g:svg>
  </p>
</html>

--
stefan goessner

----- Original Message -----
From: "Gabriel Preda" <gabriel_p@rol.ro>
To: <www-math@w3.org>; <www-svg@w3.org>
Sent: Monday, June 24, 2002 6:14 AM
Subject: Is it so hard to generate compliant software ?


>
>     I'm currently working on a site about and with Math... having in my
mind
> that I must make it 2005 compatible :))... I considered a good approach
> MathML for mathematical expressions and SVG for drawings related to
> mathematics... I want to be compliant with W3C REC as much as I can...
> BUT... I'm facing some problems...
>     The general question is:
>         Is it so hard to generate compliant software ?
> Step by step:
>     _SVG_: SVG can't be directly put in HTML... let's say that time will
> deal with this... but I wonder... why ADOBE made not one... not two... but
3
> available MIME-types for SVG files...??? (image/svg, image/svg-xml,
> image/svg+xml)... when SVG-REC only talks about the last one... Another
> thing is that <OBJECT> sometime fails... it should be as simple as
>     <OBJECT type="image/svg+xml" width=".." height=".."
> data="some_file.svg"></OBJECT>... but that is not working... thus we are
> forced to use the <EMBED> tag witch is not in any REC !!!
>
>     _MathML_: ... here are tons to discuss... same thing... MIME-type...
> techexplorer recognizes "text/mathml" which has been deprecated by
MathML2.0
> in favor of "application/mathml+xml" (which, IMHO, is more appropriate)...
> is it so hard to change some code lines to switch to another MIME-type ?
But
> that's not all with techexplorer... following the instructions on the site
> (Putting mathematics on the Web with MathML)... I get nothing...
>
>     I believe that Adobe as well as IBM are in W3C... so I would not
expect
> compliant software from other companies since companies in W3C generate
> NotThatCompliant software...
>
> Now to my MathML problem !!
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="mathml.xsl"?>
> <html xmlns="http://www.w3.org/1999/xhtml">
> [......HTML 4.01 strict DTD....]
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>  <maction actiontype="tooltip">
>  <mtable frame="solid">
>    <mtr> <mtd> <mi>p</mi> </mtd>
>      <mtd><apply><not/><ci>p</ci></apply></mtd></mtr>
>    <mtr> <mtd><mn>1</mn></mtd>
>      <mtd><mn>0</mn></mtd></mtr>
>    <mtr> <mtd><n>0</mn></mtd>
>     <mtd><mn>1</mn></td></mtr></mtable>
>  <mtext linebreak="badbreak">Table valorilor de adevar pentru
> negatie.</mtext></maction>
> </math>
> [......HTML 4.01 strict DTD....]
> [......MathML....]
> [......HTML 4.01 strict DTD....]
> [......MathML....]
> ... and so on...
>     Where is the flaw ? instead of Math expression I get "p p 1 0 0 1" ???
> Gabriel Preda - gabriel_p@rol.ro
>

Received on Monday, 24 June 2002 09:45:48 UTC