AFAIK <do> elements are accepted as first elements in the card.
So you should move it to the beginning of the card.
> -----Wiadomosc oryginalna-----
> Od: Wiley, Greg [mailto:[EMAIL PROTECTED]]
> Wyslano: 25 wrzeoenia 2001 15:50
> Do: '[EMAIL PROTECTED]'
> Temat: DO element problems with Kannel 1.0.2
>
>
> Folks,
>
> We've just got a WAP gateway up and running
> with Kannel 1.0.2 but we're finding some
> problems with some WAP sites.
>
> The following WML:
>
> <?xml version="1.0"?>
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml">
> <wml>
> <card id="Welcome" title="Welcome" ontimer="#sel">
> <timer value="30"/>
> <p align="center">
> <img src="http://wap.museum.com/logo.wbmp"
> alt="Welcome to the Museums of the World"/>
> </p>
> <do type="prev" label="back">
> <prev/>
> </do>
>
> </card>
> <card id="sel" title="Please Select">
> <p>
> <a
> href="http://wap.museum.com/jb/w-search">Museums...</a><br/>
> <a
> href="http://wap.museum.com/jb/w-events">Events...</a><br/>
> <a
> href="http://wap.museum.com/jb/w-dir">Categories...</a><br/>
> </p>
> <do type="prev">
> <prev/>
> </do>
> <do type="accept" label="Museums...">
> <go href="http://wap.museum.com/jb/w-search"/>
> </do>
> <do type="accept" label="Events...">
> <go href="http://wap.museum.com/jb/w-events"/>
> </do>
> <do type="accept" label="Categories...">
> <go href="http://wap.museum.com/jb/w-dir"/>
> </do>
> </card>
> </wml>
>
> gives the following error:
>
> 2001-09-25 10:59:54 [9] INFO: WSP: Fetched <http://wap.museum.com/>
> (text/vnd.wap.wml, charset='')
> 2001-09-25 10:59:54 [9] ERROR: WML compiler: Two or more do
> elements with
> same name in a card or template element.
> 2001-09-25 10:59:54 [9] WARNING: WSP: WML compilation failed.
> 2001-09-25 10:59:54 [9] WARNING: WSP: All converters for
> `text/vnd.wap.wml'
> failed.
>
> Has anyone seen this problem before and is there a patch or workaround
> available?
>
> Cheers, Greg.
>