Usage of the List Interface Controls
The customization of the XSL for the List interface is similar to the customization of the XSL for the Quick List interface. For example, there is no lum_link control as seen in the Quick List interface. This is because in the List interface, all the content registered in the administrative environment of the service will already be displayed, and therefore there is no need for the link "More".
Therefore, the XML rendered by the Quick List interface referenced in the previous section will be the same for the List interface, but without the lum_link control:
<renderData>
<controls>
<control type="lum_form">
<control type="lum_interfaceHeader">
<data>
<title>List (News)</title>
</data>
</control>
<control type="lum_tabularData">
<data>
<row href="main.jsp">
<title>Lumis Expands Operations in Brazil</title>
<publishStartDate>
<value>06/09/06 11:16</value>
</publishStartDate>
<introductionImage>
<name>img_logoLumis.gif</name>
<href>data/files/img_logoLumis.gif</href>
<imageLegend>Lumis Logo</imageLegend>
</introductionImage>
<introduction>Lumis (www.lumis.com.br), developer of the software platform for corporate portals, LumisXP Suite, expands operations to Southern Brazil, with a newly established business unit in Curitiba.</introduction>
</row>
<row href="main.jsp">
<title>Magazine Luiza Implements New Intranet Platform</title>
<publishStartDate>
<value>06/09/06 11:12</value>
</publishStartDate>
<introductionImage>
<name>img_logoLumis.gif</name>
<href>data/files/img_logoLumis.gif</href>
<imageLegend>Lumis Logo</imageLegend>
</introductionImage>
<introduction>After using its own solution to manage the Luiza Portal for a year, the retail chain migrates to Lumis's tool. The intranet serves 10,000 employees.</introduction>
</row>
</data>
</control>
</control>
</controls>
</renderData>
The XSL applied is also similar to that of the Quick List:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../../../../lumis/doui/style/DouiControls.xsl" ></xsl:import>
<xsl:output omit-xml-declaration = "yes" method="xml" ></xsl:output>
<xsl:template match="/">
<div>
<div><strong><xsl:value-of select="//control[@type='lum_interfaceHeader']/data/title" ></xsl:value></strong></div>
<br /><br />
<xsl:for-each select="//control[@type='lum_tabularData']/data/row">
<div>
<a href="{@href}"><strong><xsl:value-of select="title" ></xsl:value></strong></a>
(<xsl:value-of select="publishStartDate/value" ></xsl:value>)
<br />
<xsl:value-of disable-output-escaping="yes" select="introduction" ></xsl:value>
</div>
<br /><br />
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>
Therefore, the final layout will also be similar, only not presenting the "more" link. Generally, the XSL for the Quick List and List interfaces will be alike.