Re: Switch doesn't switch...

I cant' answer for XSmiles, but with minor modifications (see attachment) it
works with XFE.

Hope this helps,
Jérôme

----- Original Message -----
From: "Amir Yiron" <AYiron@store-age.com>
To: <www-forms@w3.org>
Sent: Thursday, July 25, 2002 3:16 PM
Subject: Switch doesn't switch...


>
> Hello,
>
> I'm using a 'switch', but I can't cause it to switch!
> I'm using XSmiles 0.6 browser, which suppose to support 'switch'...
> I tried a lot of conventions, all of them are based on the example in the
tutorial,
> but none of them work!
> For example:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Amir (R&D) -->
> <html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/01/xforms"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ev="http://www.w3.org/2001/xml-events" xml:lang="en">
> <head>
> <title>XForms in XHTML</title>
> <xforms:model id="internal">
> <xforms:instance xmlns="" id="selections">
> <workframe yourname="amir"/>
> </xforms:instance>
> </xforms:model>
> </head>
> <body>
> <xforms:switch model="internal" id="sw">
> <xforms:case id="in" selected="false">
> <xforms:input ref="workframe/@yourname">
> <xforms:caption>Please tell me your name</xforms:caption>
> <xforms:action ev:event="activate">
> <xforms:toggle xforms:case="out"/>
> </xforms:action>
> </xforms:input>
> </xforms:case>
> <xforms:case id="out" selected="true">
> <xforms:input ref="workframe/@yourname">
> <xforms:caption>Wrong, try again!</xforms:caption>
> <xforms:action ev:event="activate">
> <xforms:toggle xforms:case="in"/>
> </xforms:action>
> </xforms:input>
> </xforms:case>
> </xforms:switch>
> </body>
> </html>
>
> Any idea?
> Thanks,
> --Amir
>
>
> Amir Yiron - Software Engineer
> ===========================
> StoreAge Networking Technologies
> -------------------------------------------
> Tel:        (+972) - 4 - 8203454   Ext. 307
> Fax:       (+972) - 4 - 8203464
> E-mail:   ayiron@store-age.com
> Web:      www.store-age.com
>
>
>
>

Received on Friday, 26 July 2002 05:05:16 UTC