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

RE: issue with check box

Subject: RE: issue with check box
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Wed, 16 Feb 2005 08:10:13 +0200
issue a check
Hi,

>   I am getting value of the check box when the form is
> posted. But not able to re populate it when  open the
> page.Pelase help me.
> myxml
>
> <Root>
> <RscOptions  RSC.BrokerageAccount="y">
> </RscOptions>
> </Root>
>
> my xsl
>
> <xsl:call-template name="YesNoRadio">
>                         <xsl:with-param
> name="name">RSC.BrokerageAccount</xsl:with-param>
>                         <xsl:with-param name="value">
>                           <xsl:value-of
> select="/Root/RscOptions[@RSC.BrokerageAccount]"/>
>                         </xsl:with-param>

Here you bind $value to a RTF that contains line feed.

>                       </xsl:call-template>
>
>
>
> <!-- Template used to create a YesNo RadioButton -->
> 	<xsl:template name="YesNoRadio">
> 		<xsl:param name="name"/>
> 		<xsl:param name="value"/>
> 		<xsl:param name="readOnly"/>
> 		<xsl:param name="monitorChange"/>
>     <xsl:param name="onClick"/>
>     <xsl:param name="id"/>
>     <span style="white-space: nowrap;">
>     <xsl:element name="input">
>       <xsl:attribute name="id"><xsl:value-of
> select="$id"/></xsl:attribute>
>       <xsl:attribute name="type">radio</xsl:attribute>
>       <xsl:attribute name="value">1</xsl:attribute>
>       <xsl:attribute name="name"><xsl:value-of
> select="$name"/></xsl:attribute>
>       <xsl:if test="$value='1'">

And here you check if the $value is equal to string "1". Either your source
has a bug or then you should be checking for something else-ditto for "No"
input element.


Cheers,

Jarno - Feindflug: Bluthandwerk

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.