Codice XSL di esempio
<xsl:template match="/lxml:data/lxml:lists/lxml:list[@name='STAGIONI']">
<xsl:variable name="thelist"
select="/lxml:data/lxml:lists/lxml:list[@name='STAGIONI']" />
<input type="hidden" name="STAGIONI.."
value="{count(lxml:list-entries/lxml:entry[1])}" />
<div class="edDivHorizontalList">
<xsl:for-each select="$thelist/lxml:list-entries/lxml:entry">
<xsl:variable name="R_CDSTAG" select="lxml:column[1]" />
<div>
<input onchange="return isValidText(this, ' ')"
id="{$R_CDSTAG/@id}" class="utext bold" maxlength="3"
size="3" name="{$R_CDSTAG/@id}" value="{$R_CDSTAG}" />
<xsl:call-template name="ed_prompter">
<xsl:with-param name="prompter_wamname" select="'TBPR003P'" />
<xsl:with-param name="field_name_from" select="'R_CDSTAG'" />
<xsl:with-param name="field_name_to_exchange"
select="$R_CDSTAG/@id" />
<xsl:with-param name="name"
select="concat('o', position(), '_LANSA_6421')" />
</xsl:call-template>
</div>
</xsl:for-each>
</div>
</xsl:template>
Visualizzazione
LANSA 11.5
LANSA 14
Regole principali
Inserire un elemento div con classe edDivHorizontalList prima del xsl:for-each
Inserire un elemento div all'interno del xsl:for-each