Concat a xml node with a variable in xsl

tica67

New Member
Hi I need to concat a xsl node path with a variable to have a dinamic node path in xslt.I have this node:\[code\]<PRODOTTI> <ITEM STATO="2"></PRODOTTI><STATI> <COD0>Errore</COD0> <COD1>In spedizione entro le prossime 12-24 ore</COD1> <COD2>In spedizione entro le prossime 24-48 ore</COD2> </STATI>\[/code\]and in xsl I have\[code\]<xsl:variable name="stato_ordine" select="@STATO"/><xsl:variable name="ordine" select="concat(../../../TRADUZIONI/STATI/COD, $stato_ordine)" /><xsl:value-of select="$ordine"></xsl:value-of>\[/code\]but in output I only get the "stato_ordine" value, instead i'd need the complete path to get the node value.Is there anyway to have this?Thank you.
 
Back
Top