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" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" /> <xsl:template match="/"> <xsl:for-each select="formulaire/FRMFAT04001/champs"> <xsl:choose> <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> <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" /> </xsl:element> </xsl:for-each> </select> </xsl:when> </xsl:choose> </xsl:for-each> </xsl:template> </xsl:stylesheet> 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 Pierre
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT and PHP, Michael Kay | Thread | RE: [xsl] A syntaxic problem this t, Pierre |
Re: [xsl] Positional predicates in , Josh Canfield | Date | RE: [xsl] A syntaxic problem this t, Pierre |
Month |