A syntaxic problem this time

Subject: A syntaxic problem this time
From: "Pierre" <pierre@xxxxxxxxxxxxx>
Date: Fri, 2 Jul 2004 21:48:37 +0200
Hi all,
Please i'm trying to do that :
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0"
	<xsl:output method="html" />
	<xsl:template match="/">
	<xsl:for-each select="formulaire/FRMFAT04001/champs">
	<xsl:when test="@type='input'">
		<xsl:value-of select="desc" /><xsl:text> : </xsl:text>
		<input type="text" size="{size}" name="{name}"
/><xsl:value-of select="obligatoire" /><br />
		<xsl:when test="@type='select'">
		<xsl:value-of select="desc" /><xsl:text> : </xsl:text>
		<select id="{name}" name="{name}">
		<xsl:for-each select="../../SELECT/{desc}">
	 <xsl:element name="OPTION">
  <xsl:value-of select="name" /> 

I hope you understand what I wanna do, my problem is here xsl:for-each
select="../../SELECT/{desc}"> hox to say that I want select the desc.

Thanks to all


Current Thread