XML Script logo
Interpolation within a case element
Code
# \.testitem := 3 #
# \.working := 1 #
<_while test="\.working" >
	<_switch item="\.testitem" >
        	<case test="1" >within# \.testitem := 4 #</case>
        	<case test="2" >case# \.testitem := 5 #</case>
        	<case test="3" >Interpolation# \.testitem := 1 #</case>
        	<case test="4" >a# \.testitem := 2#</case>
        	<case test="5" >sub-element# \.testitem := 6 #</case>
        	<default ># \.working := 0 #</default>
	</_switch>
</_while>
Output

	Interpolation

	within

	a

	case

	sub-element


Ref

x.5803

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited