<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:m="http://www.w3.org/1998/Math/MathML" >
  <head>
    <title> XHTML with Embedded MathML -- Using Namespace Prefixes</title>
    <meta name="keywords" content="XHTML, examples, Ian Graham"  />
    <style>
    /* Here's a trick that associated the prefix m with the mathml 
       namespac -- the next line says all elements in the mathml namespace
       use the garamond font -- */
    @namespace m url(http://www.w3.org/1998/Math/MathML);
    m|* {font-family: garamond }
    math  {
	   margin-left: 2em;
	   border: 1px solid black;
	   padding: 0.3em;
           font-size: 150%;
           font-family: garamond; } 
    </style>
    <link rel="stylesheet" href="./style.css" />
  </head>
  <body>
  <h1>XHTML with Embedded MathML</h1>
  <p> This document is written in XHTML, but also has some MathML 
    embedded within it.   As I;m using prefixes, I can stick little
    bits of math right in the text. For example, The following
    equation defines the function
    <m:mi>f</m:mi> <m:mo>(</m:mo><m:mi>x</m:mi><m:mo>)</m:mo>, where:
  </p>
  <m:math>
    <m:mi>f</m:mi>
    <m:mo>(</m:mo><m:mi>x</m:mi><m:mo>)</m:mo>
    <m:mo>=</m:mo>
    <m:msubsup>
         <m:mo>&#x2211;</m:mo>  <!-- summation character -->
         <m:mrow><m:mi>n</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:mrow> <!-- a 'row' -->
         <m:mn>&#x221E;</m:mn>  <!-- reference to infinity symbol -->
    </m:msubsup>
    <m:mfrac>
      <m:mrow> <m:mi>G</m:mi><m:mo>(</m:mo><m:mi>a</m:mi><m:mo>,</m:mo><m:mi>n</m:mi><m:mo>)</m:mo> </m:mrow>
      <m:mrow><m:mi>n</m:mi><m:mo>!</m:mo></m:mrow>
    </m:mfrac>
      <m:mo>(</m:mo><m:mi>x</m:mi><m:mo>-</m:mo><m:mi>a</m:mi>
      <m:msup><m:mo>)</m:mo> <m:mi>n</m:mi></m:msup>
  </m:math>
  <p>And here's another paragraph, just to show the spacing between two
    adjacent paragraphs.  Well, what did you expect for free, art?
  </p>
  <hr size="1" noshade="noshade" />
  <div class="footer">
  Example by <a href="http://www.utoronto.ca/ian/books/">Ian Graham</a>, 
  prepared in January, 2002, as part of an article for 
  <a href="http://www.computerpoweruser.com">Computer Power User Magazine</a>. 
  <br />Go back to <a href="index.html">Index</a>.
  </div>
  </body>
</html>
