[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Generating form fields with xsl

Subject: Re: Generating form fields with xsl
From: "Andrew Curry" <andrew.curry@xxxxxxxxxxxx>
Date: Fri, 26 Mar 2004 15:51:01 -0000
xsl form fields
 <xsl:choose><xsl:when test="display='textfield'"><input type="text"
name="{name}"/></xsl:when>
      <xsl:when test="display='textarea'"><textarea name="{name}"
></textarea>   </xsl:when>

you are missing a $ off name and if display is an attribute it will be
preceded by a $ or @ depending on the context i.e.

 <xsl:choose>
<xsl:when test="@display='textfield'">
<input type="text"name="{$name}"/>
</xsl:when>
<xsl:otherwise>
otherwise do something
</xsl:otherwise>
</xsl:choose>
----- Original Message -----
From: "Pieter Reint Siegers Kort" <pieter.siegers@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, March 26, 2004 3:48 PM
Subject: RE:  Generating form fields with xsl


> Hi Kaerstin,
>
> Please post your XML or an extract of it so we can determine the cause of
> your problem better, just like you did with the radio and check boxes.
>
> <prs/>
>
> -----Original Message-----
> From: Johnson, Kaerstin [mailto:johns218@xxxxxxxxx]
> Sent: Friday, March 26, 2004 9:08 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Generating form fields with xsl
>
>
> I have an xml page that gets translated into a html form using my xsl
> stylesheet. However when I try and create a textarea field, it doesnt
work.
> How does one create a <textarea name=""></textarea> equivalent in xsl?
>
>  I tried using an input with ttype textfield and also the way below: they
> dont seem to work.
>
>
>  <xsl:choose><xsl:when test="display='textfield'"><input type="text"
> name="{name}"/></xsl:when>
>       <xsl:when test="display='textarea'"><textarea name="{name}"
> ></textarea>   </xsl:when>
>
>          <xsl:otherwise>
>
>             <xsl:apply-templates select="possibleValues">
>             <xsl:with-param name="typo" select="display"/>
>             <xsl:with-param name="multiple" select="$multiple"/>
>               <xsl:with-param name="label" select="name"/>
>                     </xsl:apply-templates>
>            </xsl:otherwise>
>        </xsl:choose>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.