Warning, /multimedia/kmplayer/tests/state.smil is written in an unsupported language. File is not indexed.

0001 <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language">
0002   <head>
0003     <layout>
0004       <root-layout width="400" height="200" backgroundColor="white"/>
0005     </layout>
0006     <state/>
0007   </head>
0008   <body>
0009     <newvalue name="books"/>
0010     <newvalue name="book" ref="books"/>
0011     <newvalue name="title" ref="/data/books/book"
0012               value="&quot;Tom Sawyer&quot;"/>
0013     <newvalue name="author" ref="/data/books/book/title" where="after"
0014               value="&quot;Mark Twain&quot;"/>
0015     <newvalue name="book" ref="books"/>
0016     <newvalue name="title" ref="/data/books/book[last()]"
0017               value="&quot;Uncle Tom's Cabin&quot;"/>
0018     <newvalue name="author" ref="/data/books/book[2]/title" where="after"
0019               value="&quot;Harriet Beecher Stowe&quot;"/>
0020     <newvalue name="book" ref="books"/>
0021     <newvalue name="title" ref="/data/books/book[last()]"
0022               value="&quot;Pygmalion&quot;"/>
0023     <newvalue name="author" ref="//title[3]" where="after"
0024               value="&quot;George Bernard Shaw&quot;"/>
0025     <par dur="5">
0026       <text src="data:,author%3A" left="10" top="10" width="100" height="20"/>
0027       <text src="data:,title%3A" left="200" top="10" width="100" height="20"/>
0028       <text src="data:,author%3A%20{/data/books/book[title = &quot;Tom Sawyer&quot;]/author}"
0029             left="10" top="40" width="190" height="20"/>
0030       <text src="data:,{//book/title[1]}"
0031             left="200" top="40" width="190" height="20"/>
0032       <text src="data:,{/data/books/book[title = &quot;Uncle Tom's Cabin&quot;]/author}"
0033             left="10" top="70" width="190" height="20"/>
0034       <text src="data:,{/data/books/book[position() = 2]/title}"
0035             left="200" top="70" width="190" height="20"/>
0036       <text src="data:,{//book[last()]/author}"
0037             left="10" top="100" width="190" height="20"/>
0038       <text src="data:,{/data/books/book/title[contains(., 'Pygma')]}"
0039             left="200" top="100" width="190" height="20"/>
0040       <text src="data:,books%20{number(/data/books/book)}"
0041             left="10" top="160" width="300" height="20"/>
0042     </par>
0043     <newvalue name="@price" ref="/data/books/book[1]" value="10p"/>
0044     <newvalue name="@foo" ref="/data/books/book[2]" value="fred"/>
0045     <newvalue name="@bar" ref="/data/books/book[2]" value="barney"/>
0046     <newvalue name="@price" ref="/data/books/book[3]" value="5&#36;"/>
0047     <par dur="5">
0048       <text src="data:,books%20with%20price%20{//book[@price]}" left="10" top="10" width="300" height="20"/>
0049       <text src="data:,books%20with%20price%2010p%20{//book[@price=&quot;10p&quot;]/title}" left="10" top="40" width="300" height="20"/>
0050       <text src="data:,price%20of%20{escape-uri(string-join(//book[3]/title | //book[3]/@price, ' is '))}" left="10" top="70" width="300" height="20"/>
0051       <text src="data:,attributes%20on%20second%20book%20{//book[2]/@*}" left="10" top="100" width="300" height="20"/>
0052       <text src="data:,total%20attributes%20on%20book%20{//book/@*}" left="10" top="130" width="300" height="20"/>
0053       <text src="data:,second%20attribute%20on%20book%20{//book/@*[2]}" left="10" top="160" width="300" height="20"/>
0054     </par>
0055     <delvalue ref="//@foo"/>
0056     <par dur="5">
0057       <text src="data:,Title%20&quot;{/data/books/book[2]/title}&quot;"
0058             left="10" top="10" width="300" height="20"/>
0059       <text src="data:,Has%20{tokenize(/data/books/book[2]/title,&quot;\S+&quot;)}%20words"
0060             left="10" top="40" width="300" height="20"/>
0061       <text src="data:,First word%20is%20&quot;{tokenize(/data/books/book[2]/title,&quot;\S+&quot;)[1]}&quot;"
0062             left="10" top="70" width="300" height="20"/>
0063       <text src="data:,First two words%20are%20&quot;{string-join(subsequence(tokenize(/data/books/book[2]/title,&quot;\S+&quot;),1,2), ' ')}&quot;"
0064             left="10" top="100" width="300" height="20"/>
0065       <text src="data:,Words after second words%20are%20&quot;{string-join(subsequence(tokenize(/data/books/book[2]/title,&quot;\S+&quot;),3), ' ')}&quot;"
0066             left="10" top="130" width="300" height="20"/>
0067       <text src="data:,second%20attribute%20on%20book%20{//book/@*[2]}" left="10" top="160" width="300" height="20"/>
0068     </par>
0069     <par dur="5">
0070       <text src="data:,Before%20&quot;Pygmalion&quot;%20are%20{descendant::book[child::title = &quot;Pygmalion&quot;]/preceding-sibling::*}%20books"
0071             left="10" top="10" width="300" height="20"/>
0072       <text src="data:,After%20&quot;Pygmalion&quot;%20are%20{descendant::book[child::title = &quot;Pygmalion&quot;]/following-sibling::*}%20books"
0073             left="10" top="40" width="300" height="20"/>
0074       <text src="data:,There%20are%20{count(//node())}%20nodes"
0075             left="10" top="70" width="300" height="20"/>
0076       <text src="data:,There%20are%20{count(//text())}%20text%20nodes"
0077             left="10" top="100" width="300" height="20"/>
0078     </par>
0079     <delvalue ref="//books"/>
0080   </body>
0081 </smil>
0082