1<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> 2 <head> 3 <layout> 4 <root-layout width="400" height="200" backgroundColor="white"/> 5 </layout> 6 <state src="books.xml"/> 7 </head> 8 <body> 9 <par dur="5"> 10 <text src="data:,author%3A" left="10" top="10" width="100" height="20"/> 11 <text src="data:,title%3A" left="200" top="10" width="100" height="20"/> 12 <text src="data:,author%3A%20{/books/book[title = "Tom Sawyer"]/author}" 13 left="10" top="40" width="190" height="20"/> 14 <text src="data:,{//book/title[1]}" 15 left="200" top="40" width="190" height="20"/> 16 <text src="data:,{/books/book[title = "Uncle Tom's Cabin"]/author}" 17 left="10" top="70" width="190" height="20"/> 18 <text src="data:,{/books/book[position() = 2]/title}" 19 left="200" top="70" width="190" height="20"/> 20 <text src="data:,{//book[last()]/author}" 21 left="10" top="100" width="190" height="20"/> 22 <text src="data:,{/books/book[last()]/title}" 23 left="200" top="100" width="190" height="20"/> 24 <text src="data:,books%20{number(/books/book)}" 25 left="10" top="160" width="300" height="20"/> 26 </par> 27 </body> 28</smil> 29 30