<?xml version="1.1"?>
<!--
Copyright: Copyright 1998-2008  W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/2008/04-testsuite-license.
Author: Jack Jansen (CWI)
Version: January 22, 2008
Chapter: SMIL 3.0 State
Module: UserState
Feature: newvalue element
File Name: test-03-newvalue.smil
Description: Computes expressions and sets variables with newvalue.
	StateInterpolation is required for this test.
Expected Behavior: The output is self-describing, displayed in 3 5-second texts. 
	
-->
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language">
  <head>
    <layout>
      <root-layout width="400" height="100" backgroundColor="white"/>
      <region xml:id="text" width="400" height="100" />
    </layout>
    <state language="http://www.w3.org/TR/1999/REC-xpath-19991116">
     <data xmlns="">
     </data>
    </state>
  </head>
  <body>
   <seq>
    <newvalue ref="/data" name="foo" value="42" />
    <text region="text" dur="5s" src="data:,the%20number%20{foo}%20should%20be%20forty-two" />
    <setvalue ref="foo" value="43" />
    <text region="text" dur="5s" src="data:,the%20number%20{foo}%20should%20be%20forty-three" />
    <setvalue ref="foo" value="foo+1" />
    <text region="text" dur="5s" src="data:,the%20number%20{foo}%20should%20be%20forty-four" />
   </seq>
  </body>
</smil>
