ciao a tutti,
ho un file xml in cui ho un elenco di tag ognuno dei quali deve diventare un td di una tabella
ognuno di questi tag ha un attributo "cols" che diventerà il "colspan" del td
il nr di colonne della tabella è specificato nell'attributo "cols" del tag root del file xml:
<roottag cols="3">
<tagchild cols="3" >valore1</tagchild >
<tagchild cols="1" >valore2</tagchild >
<tagchild cols="2" >valore3</tagchild >
<tagchild cols="1" >valore4</tagchild >
<tagchild cols="1" >valore5</tagchild >
<tagchild cols="1" >valore6</tagchild >
</roottag>
quindi vorrei ottenere una tabella con 3 colonne e righe:
valore1 (colspan=3)
valore2 | valore3 (colspan=2)
valore4 | valore5 | valore6
devo fare questa cosa urgentemente ma non conosco bene xsl....
mi date una mano per favore?
grazie mille
ciao

Rispondi quotando