xsl-list
[Top] [All Lists]

RE: [xsl] onChange does not funtioning?

2008-05-15 03:56:18
As far as XSLT is concerned, onChange is just an attribute to be added to
the generated HTML (or ASP) output document. It's no different from
generating an attribute called bgColor or fzSackTheLawyers. If the output
document doesn't behave the way you want, then you need to fix it. That
doesn't require a change in the way the document is generated.

Or perhaps you are imagining that somehow the onChange action should be
activated during the XSLT transformation? If so, you're confused about the
processing model.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: nenad(_at_)njconsulting(_dot_)de 
[mailto:nenad(_at_)njconsulting(_dot_)de] 
Sent: 15 May 2008 11:33
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] onChange does not funtioning?

Hi,
I have:

        <form action="Default.aspx"    runat="server">


<select name="SelectCategories">
                  <xsl:attribute 
name="onChange">form.submit()</xsl:attribute>
                  <xsl:for-each 
select="document('../content/en//categorycodes.xml')/catcodes/
category">
                    <option>
                      <xsl:attribute name="value">
                        <xsl:value-of select="@code"/>
                      </xsl:attribute>

                      <xsl:value-of select="."/>
                    </option>
                  </xsl:for-each>
                </select>



</form>

onChange is not reacting.
Should I use javascript instead?
Thanks
Nenad

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--