xsl-list
[Top] [All Lists]

issue with check box

2005-02-15 14:01:37
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[(_at_)RSC(_dot_)BrokerageAccount]"/>
                        </xsl:with-param>
                      </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'">
        <xsl:attribute name="checked">true</xsl:attribute>
      </xsl:if>
       
      <xsl:if test="boolean($monitorChange) and boolean($onClick)">
        <xsl:attribute name="onClick"><xsl:value-of 
select="concat('wasChanged(); ', $onClick)"/></xsl:attribute>
      </xsl:if>
      <xsl:if test="boolean($monitorChange) and boolean($onClick) = false">
        <xsl:attribute name="onClick">wasChanged();</xsl:attribute>
      </xsl:if>
      <xsl:if test="boolean($monitorChange) = false and boolean($onClick)">
        <xsl:attribute name="onClick"><xsl:value-of 
select="$onClick"/></xsl:attribute>
      </xsl:if>
    </xsl:element>
    Yes
    <xsl:element name="input">
      <xsl:attribute name="type">radio</xsl:attribute>
      <xsl:attribute name="value">0</xsl:attribute>
      <xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
      <xsl:if test="$value='0'">
        <xsl:attribute name="checked">true</xsl:attribute>
      </xsl:if>
      <xsl:if test="boolean($monitorChange) and boolean($onClick)">
        <xsl:attribute name="onClick"><xsl:value-of 
select="concat('wasChanged(); ', $onClick)"/></xsl:attribute>
      </xsl:if>
      <xsl:if test="boolean($monitorChange) and boolean($onClick) = false">
        <xsl:attribute name="onClick">wasChanged();</xsl:attribute>
      </xsl:if>
      <xsl:if test="boolean($monitorChange) = false and boolean($onClick)">
        <xsl:attribute name="onClick"><xsl:value-of 
select="$onClick"/></xsl:attribute>
      </xsl:if>
    </xsl:element>
    No
    </span>
        </xsl:template>


-----Message Disclaimer-----

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to Connect(_at_)principal(_dot_)com and delete or destroy all 
copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act ("E-Sign")
unless a specific statement to the contrary is included in this message.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>