Mobile rendering style for rich text elements

Rich text is transformed to the XDIME markup within the WCM content with less styling. The developer can modify the XSLT to add style.

Styling is created using the MTHM files of Aggregator and the class names are mentioned in the XSLT so that the generated XDIME will have the classes set and the styles will be reflected. For example:

<xsl:template match="div">
<div class="{@class}">
<xsl:apply-templates/>
</div> </xsl:template>

You can add inline CSS in the XSLT as shown in the following example:

<xsl:template match="h2">
<h2>
<xsl:value-of select="."/>
</h2>
</xsl:template>

You can render remotely or locally with equal ease because the tool generates the XDIME content from the rich text content.




Terms of use
(C) Copyright IBM Corporation 2012. All Rights Reserved.