Desplegable con datos de un XML
Publicado por Andres (2 intervenciones) el 24/09/2001 14:41:55
He creado un desplegable con el siguiente codigo:
<select size="1" name="gamax">
<xsl:for-each select="/GAMA">
<option>
<xsl:attribute name="value">
<xsl:text><xsl:value-of select="CODIGO"/></xsl:text>
</xsl:attribute>
<xsl:value-of select="DESCRIPCION"/>
</option>
</xsl:for-each>
</select>
Pero me da el siguiente error:
La palabra clave xsl:text no se puede usar aquí.
Podria alguien ayudarme?. Gracias
<select size="1" name="gamax">
<xsl:for-each select="/GAMA">
<option>
<xsl:attribute name="value">
<xsl:text><xsl:value-of select="CODIGO"/></xsl:text>
</xsl:attribute>
<xsl:value-of select="DESCRIPCION"/>
</option>
</xsl:for-each>
</select>
Pero me da el siguiente error:
La palabra clave xsl:text no se puede usar aquí.
Podria alguien ayudarme?. Gracias
Valora esta pregunta


0