1
我想在我的WML教科書中找到的變量上運行這個WML示例,但它每次都在同一行/語句中給我一個錯誤。這是代碼:WML:A <do>元素沒有定義的類型
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="card1" title="First Card" newcontext="true">
<p>
Card 1... <br/>
card1 var1=$(card1_var1) <br/>
card2 var1=$(card2_var1) <br/>
card3 var1=$(card3_var1) <br/>
<do type="accept" label="Next Card">
<go href="#card2">
<setvar name="card1_var1" value="val_1"/>
</go>
</do>
</p>
</card>
<card id="card2" title="Second Card">
<p>
Card2 ...<br/>
Card1 var1 = $(card1_var1) <br/>
Card2 var1 = $(card2_var1) <br/>
Card3 var1 = $(card3_var1) <br/>
<do type="accept" label="First Card">
<go href="#card1"/>
</do>
<do type="accept" label="Third Card">
<go href="#card3">
<setvar name="card2_var1" value="val_2"/>
</go>
</do>
<do type="prev" label="Previous Card">
<prev/>
</do>
</p>
</card>
<card id="card3" title="Third Card">
<onevent type="onenterforward">
<refresh>
<setvar name="card3_var1 " value="val_3"/>
</refresh>
</onevent>
<p>
Card 3 ...<br/>
Card1 var1 = $(card1_var1) <br/>
Card2 var1 = $(card2_var1) <br/>
Card3 var1 = $(card3_var1) <br/>
<do type="prev" label="Previous">
<prev/>
</do>
</p>
</card>
我得到的錯誤在26行甚至認爲類型是那邊定義,它仍然提供了錯誤。