![]() |
| Web page content design The XSLT stylesheet "site_center_area" defines the rules for mapping the WCXE objects into html code of the website page. If the object has been setup its html code representation is the easiest part of the installation. There are two XSLT templates for each object in the XSLT stylesheet "site_center_area". For a top object of html-page the following XSLT templates must be designed <xsl:template match="object-name[position()=$obj.active]" mode="content-of-page"> ... </xsl:template> <xsl:template match="object-name" mode="content-of-page"> ... </xsl:template> The first XSLT template is excuted when the user selects the object for editing. The second displays the object and the WCX Editor link-controller. The link-controller is printed by the XSLT template with name "xe:controller". The top object can be a collection of other objects. Then, the object-selected event is propagated to its child objects. The child objects are handled by the templates <xsl:template match="object-name" mode="content-of-page"> ... </xsl:template> <xsl:template match="object-name" mode="select-objects"> ... </xsl:template> |