<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<?xml-stylesheet type="text/css" href="http://ludwig.im/mathlml.css/"?>
<xml xmlns:math="http://www.w3.org/1998/Math/MathML"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.w3.org/1998/Math/MathML http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd">
<math:math>
 <math:semantics>
  <math:mrow>
   <math:mstyle math:fontsize="12pt">
    <math:mrow>
     <math:mrow>
      <math:mi>f</math:mi>
      <math:mo math:stretchy="false">(</math:mo>
      <math:mi>x</math:mi>
      <math:mrow>
       <math:mo math:stretchy="false">)</math:mo>
       <math:mo math:stretchy="false">=</math:mo>
       <math:mtext>sin</math:mtext>
      </math:mrow>
      <math:mo math:stretchy="false">(</math:mo>
      <math:mrow>
       <math:mrow>
        <math:mfrac>
         <math:mn>1</math:mn>
         <math:mn>3</math:mn>
        </math:mfrac>
        <math:mo math:stretchy="false">&#8901;</math:mo>
        <math:msup>
         <math:mi>x</math:mi>
         <math:mstyle math:fontsize="8pt">
          <math:mrow>
           <math:mn>4</math:mn>
          </math:mrow>
         </math:mstyle>
        </math:msup>
       </math:mrow>
       <math:mo math:stretchy="false">+</math:mo>
       <math:mrow>
        <math:mn>3</math:mn>
        <math:mo math:stretchy="false">&#8901;</math:mo>
        <math:mi>x</math:mi>
       </math:mrow>
      </math:mrow>
      <math:mo math:stretchy="false">)</math:mo>
     </math:mrow>
    </math:mrow>
   </math:mstyle>
   <math:mrow/>
  </math:mrow>
  <math:annotation math:encoding="StarMath 5.0"> size 12{f \( x \) =&quot;sin&quot; \(  {  {1}  over  {3} }  cdot x rSup { size 8{4} } +3 cdot x \) } {}</math:annotation>
 </math:semantics>
</math:math>
<script xmlns="http://www.w3.org/1999/xhtml">
   <![CDATA[
    function resize() {
      alert('XML with javascript test');
    }
function alertSize() {
 var viewportwidth;
 var viewportheight;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }
alert('Your viewport width: '+viewportwidth+' and height: '+viewportheight);
}

function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}func();}}}	      
function getXMLCSS(el, prop) {
	
	if (document.documentElement && document.defaultView)
	{	
		var children = document.getElementsByTagName("*");
		for (var i = 0; i < children.length; i++) { 
			if ( children[i].tagName == el ){
				return document.defaultView.getComputedStyle(children[i], "").getPropertyValue(prop);
			}
		}
	}

}
addLoadEvent(function(){ var test_var= getXMLCSS('math:math', 'width');});
   ]]>
</script>
</xml>
