clearvar fragment #
Demo
Clear variable on transition from page3 to page0 SnomIPPhoneText.
<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneBatch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../minibrowser_test.xsd">
<SnomIPPhoneText id="page0">
<Title>page 0</Title>
<SoftKeyItem>
<Name>*</Name>
<Url>http://docs.snom.io/xml_minibrowser/examples/xml/fr_clearvar.xml#sub=*[@id="page1"]</Url>
</SoftKeyItem>
<Text>
var:first_page: $(var:first_page)
<br />
prees * to continue
</Text><!-- here variable always empty -->
</SnomIPPhoneText>
<SnomIPPhoneText id="page1">
<Title>page 1</Title>
<SoftKeyItem>
<Name>*</Name>
<Url>http://docs.snom.io/xml_minibrowser/examples/xml/fr_clearvar.xml#sub=*[@id="page2"]&var:first_page=$(urlencode:hello world)</Url>
</SoftKeyItem>
<Text>
var:first_page: $(var:first_page)
<br />
prees * to continue set var_first_page = hello_world
</Text>
</SnomIPPhoneText>
<SnomIPPhoneText id="page2">
<Title>page 2</Title>
<SoftKeyItem>
<Name>*</Name>
<Url>http://docs.snom.io/xml_minibrowser/examples/xml/fr_clearvar.xml#sub=*[@id="page3"]</Url>
</SoftKeyItem>
<Text>
var:first_page: $(var:first_page)
<br />
prees * to continue
</Text>
</SnomIPPhoneText>
<SnomIPPhoneText id="page3">
<Title>page 3</Title>
<SoftKeyItem>
<Name>*</Name>
<Url>http://docs.snom.io/xml_minibrowser/examples/xml/fr_clearvar.xml#sub=*[@id="page0"]&clearvar</Url>
</SoftKeyItem>
<Text>
var:first_page: $(var:first_page)
<br />
prees * to continue clearvar
</Text>
</SnomIPPhoneText>
</SnomIPPhoneBatch>