mo:pageInfo Attribute

Top  Previous  Next

In an XSL Stylesheet document mo:pageInfo attributes can be attached to the HTML container elements such as body, table, div, etc. to define some important information about that part of the document.

 
  <body mo:pageInfo="" .. >
    ...
 
    <table mo:pageInfo="" .. >
      ...
 
      <div mo:pageInfo="" .. >
        ...
      </div> 
 
      ...
 
      <div mo:pageInfo="" .. >
        ..
      </div> 
 
    </table>
    ... 
  </body>
 

The mo:pageInfo attributes can be attached to more than element in a document and even they can be attached to the elements that are nested within the elements which also have mo:pageInfo attributes.

When MoreMotion Face needs the page information, it starts with the current DOM node and climbs up to the root of the document until it finds a mo:pageInfo attribute.

This technic is absolutely necessary to find the original page name and other page specific information in case of the content of the page is updated with AjaxMgr.refreshAreas() method calls.

 

Syntax:

pageInfo="name:products;lang:en;charset;iso-8859-1;GS:,;DS:."

name

The name of the page that this part is transferred from.

lang

The language of the part

charset

The character set of the part.

GS

The grouping separator the part

DS

The decimal symbol of the part

 

Setting the pageInfo dynamically

The pageInfo attribute can also be set dynamically as follows:

pageInfo="{/root/pageinfo}"

 

In order to force MoreMotion to provide the pageinfo data source for each page the system parameter generatePageInfo should be set to "true" in the sysinfo.xml file.