MoreMotion Page XSL Stylesheet

Top  Previous  Next

The structure of a MoreMotion Page XSL stylesheet document must be as follows:

  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:mo="http://www.moremotion.org/NameSpaces/mo" >
 
    <xsl:output method="html" encoding="iso-8859-1" indent="yes" version="1.0" />
    <xsl:decimal-format name="std" grouping-separator="," decimal-separator="."/>
 
    <xsl:template match="/">
    <html>
      <head>
        <script type="text/javascript" src="moremotion/face/Common.js"></script>
        <script type="text/javascript" src="moremotion/face/_resources/en/Common.js"></script>
      </head>
      <body onload="OMgr.initialize()" 
            mo:pageInfo="name:/products;lang:en;charset:iso-8859-1;GS:,;DS:." >
 
        <!--
          THE PAGE CONTENT
          -->
 
      </body>
    </html>
    </xsl:template>
 
  </xsl:stylesheet>

MoreMotion specific parts of the document

The name space declaration of "mo" prefix.
Inclusion of MoreMotion Face Javascript files. Depending on the page content, more Javascript files may be required.
OMgr.initialize() call in onload event of body tag.
mo:pageInfo attribute in body tag.