Content

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

This example code will return two different results depending of the existence of the content of variable some_var

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneText>
	<If condition="$(empty:$(var:some_var))">
		<Text>No variable received<br/></Text>
	</If><Else>
		<Text>Variable received<br/>some_var:$(var:some_var)</Text>
	</Else>
</SnomIPPhoneText>


Result if called with http://server/thisexample.xml#var:some_var=hello_world :

Image Added


Result if called only with http://server/thisexample.xml :

Image Added


Include Page
Howto Footer - uni-en
Howto Footer - uni-en

Content by Label
showLabelsfalse
max50
spacesPW
showSpacefalse
sorttitle
typepage
cqllabel = "callbacks" and type = "page"
labels minibrowser xml-minibrowser

Sv translation
languagede

Dieser Beispielcode gibt zwei verschiedene Ergebnisse zurück, je nachdem, ob der Inhalt der Variablen some_var vorhanden ist

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneText>
	<If condition="$(empty:$(var:some_var))">
		<Text>No variable received<br/></Text>
	</If><Else>
		<Text>Variable received<br/>some_var:$(var:some_var)</Text>
	</Else>
</SnomIPPhoneText>


Ergebnis bei Aufruf mit http://server/thisexample.xml#var:some_var=hello_world:

Image Added


Ergebnis bei Aufruf nur mit http://server/thisexample.xml :

Image Added


Include Page
Howto Footer - de
Howto Footer - de

Content by Label
showLabelsfalse
max50
spacesPW
showSpacefalse
sorttitle
typepage
cqllabel = "xml-minibrowser" and label = "callbacks" and type = "page"
labelsdect dect-multicell