<spec/> <src/> <prev/> <next/> </data> </instance> <bind ref="instance('test')"> <bind ref="chapter" calculate="instance('testsuite')/chapter[@name=instance('test')/name]/@number"/> <bind ref="title" calculate="instance('testsuite')/chapter[@name=instance('test')/name]/test[@name=instance('test')/testname]/@title"/> <bind ref="prevname" calculate="instance('testsuite')/chapter[@name=instance('test')/name]/preceding-sibling::chapter[1]/@name" readonly=".=''"/> <bind ref="nextname" calculate="instance('testsuite')/chapter[@name=instance('test')/name]/following-sibling::chapter[1]/@name" readonly=".=''"/> <bind ref="spec" calculate="instance('testsuite')/chapter[@name=instance('test')/name]/test[@name=instance('test')/testname]/@spec"/> <bind ref="prev" calculate="instance('testsuite')/chapter[@name=instance('test')/name]/test[@name=instance('test')/testname]/preceding-sibling::test[1]/@name" readonly=".=''"/> <bind ref="next" calculate="instance('testsuite')/chapter[@name=instance('test')/name]/test[@name=instance('test')/testname]/following-sibling::test[1]/@name" readonly=".=''"/> <bind ref="src" calculate="if(../testname = '', 'none.html', concat(../name, '/', ../testname, '.xhtml'))"/> </bind> <submission id="submit_chapterModel" method="put"> <resource value="concat('Results/XF11_', instance('test')/chapter, '_Results.xml')" /> </submission> <submission id="load_chapterModel" serialization="none" method="get" replace="instance"> <resource value="concat('Results/XF11_', instance('test')/chapter, '_Results.xml')"/> </submission> <submission id="clear_chapterModel" serialization="none" method="get" replace="instance"> <resource value="concat('xml/XF11TestSuiteChpt', instance('test')/chapter, '.xml')"/> </submission> <submission id="replace-chapter" replace="instance" instance="chapter-tests"> <resource value="concat(instance('test')/name, '/tests.xml')"/> <action ev:event="xforms-submit-done"> <toggle case="found"/> </action> <action ev:event="xforms-submit-error"> <toggle case="notfound"/> </action> </submission> <message ev:event="xforms-submit-error">Submission error. error-type: <output value="event('error-type')"/> error-message: <output value="event('error-message')"/> response-status-code: <output value="event('response-status-code')"/> response-reason-phrase: <output value="event('response-reason-phrase')"/> resource-uri: <output value="event('resource-uri')"/> </message> <action ev:event="xforms-ready"> <setvalue ref="instance('test')/name" value="instance('testsuite')/chapter[1]/@name"/> </action> </model> </head> <body> <p><a href="testsuite.xml">test definitions</a></p> <group xmlns="http://www.w3.org/2002/xforms"> <label class="heading">XForms 2.0 Test Suite</label> <trigger ref="instance('test')/prevname"><label>Previous</label> <hint><output ref="instance('test')/prevname"/></hint> <setvalue ref="instance('test')/name" value="if(../prevname='', ., ../prevname)" ev:event="DOMActivate"/> </trigger> <select1 ref="instance('test')/name"> <label>Chapter: </label> <itemset ref="instance('testsuite')/chapter"> <label ref="@title"/> <value ref="@name"/> </itemset> <action ev:event="xforms-value-changed"> <setvalue ref="instance('test')/testname"/> <toggle case="overview"/> </action> </select1> <trigger ref="instance('test')/nextname"><label>Next</label> <hint><output ref="instance('test')/nextname"/></hint> <setvalue ref="instance('test')/name" value="if(../nextname='', ., ../nextname)" ev:event="DOMActivate"/> </trigger> <output ref="instance('test')/prev"/>] <output ref="instance('test')/testname"/> [<output ref="instance('test')/next"/> test: <output ref="instance('test')/name"/>=<output ref="instance('test')/src"/> <output value="concat('Chapter ', instance('test')/chapter, '. ', instance('testsuite')/chapter[@name=instance('test')/name]/@title)" class="docTitle"/> <group> <group> <h:span class="testCaseDescription Title">Test Case (*=new)</h:span> <h:span class="testCaseSpecLink Title">Spec Link</h:span> </group> <switch> <case id="overview"> <repeat id="cases" ref="chapter[@name=instance('test')/name]/test"> <output value="if(contains('123456789', substring(@name, 1, 1)), ' ', '*')"/> <trigger appearance="minimal" class="testCaseDescription Value"> <label ref="." class="Link"/> <hint><output value="concat(instance('test')/name, '/', @name, '.xhtml')"/></hint> <action ev:event="DOMActivate"> <setvalue ref="instance('test')/testname" value="context()/@name"/> <toggle case="testonecase"/> </action> </trigger> <trigger appearance="minimal" class="testCaseSpecLink Value"> <label class="Link"><output ref="@spec"/></label> <hint><output value="concat('https://www.w3.org/community/xformsusers/wiki/', if(substring(@spec, 1, 3) = 'fn-', 'XPath_Expressions_Module#', 'XForms_2.0#'), @spec)"/></hint> <load ev:event="DOMActivate" target="_blank"> <resource value="concat('https://www.w3.org/community/xformsusers/wiki/', if(substring(@spec, 1, 3) = 'fn-', 'XPath_Expressions_Module#', 'XForms_2.0#'), @spec)"/> </load> </trigger> </repeat> </case> <case id="testonecase"> <select1 ref="instance('test')/testname" class="testCaseDescription Value"> <label></label> <itemset ref="instance('testsuite')/chapter[@name=instance('test')/name]/test"> <label ref="."/> <value ref="@name"/> </itemset> </select1> <trigger appearance="minimal" class="testCaseSpecLink Value"> <label class="Link"> <output ref="instance('test')/spec"/> </label> <hint><output value="concat('https://www.w3.org/community/xformsusers/wiki/', if(substring(@spec, 1, 3) = 'fn-', 'XPath_Expressions_Module#', 'XForms_2.0#'), instance('test')/spec)" /> </hint> <load ev:event="DOMActivate" target="_blank"> <resource value="concat('https://www.w3.org/community/xformsusers/wiki/', if(substring(@spec, 1, 3) = 'fn-', 'XPath_Expressions_Module#', 'XForms_2.0#'), instance('test')/spec)" /> </load> </trigger> <select1 ref="/ts:testSuite/ts:specChapter/ts:testCase[position()=instance('test')/index]/ts:testCaseStatus"> <label>result:</label> <item> <label>✔</label> <value>Passed</value> </item> <item> <label>X</label> <value>Failed</value> </item> <item> <label>?</label> <value>Unknown</value> </item> </select1> <input ref="/ts:testSuite/ts:specChapter/ts:testCase[position()=instance('test')/index]/ts:testCaseNote"> <label>Note</label> </input> <group> <trigger><label>Overview</label> <action ev:event="DOMActivate"> <setvalue ref="instance('test')/testname"/> <toggle case="overview"/> </action> </trigger> <trigger ref="instance('test')/prev"><label>Previous</label> <setvalue ref="instance('test')/testname" value="if(../prev='', ., ../prev)" ev:event="DOMActivate"/> </trigger> <trigger ref="instance('test')/next"><label>Next</label> <setvalue ref="instance('test')/testname" value="if(../next='', ., ../next)" ev:event="DOMActivate"/> </trigger> </group> <h:iframe id="testcase" src="{instance('test')/src}"></h:iframe> </case> </switch> </group> </group> <hr/> <p> Distributed under both the <a href="http://www.w3.org/Consortium/Legal/2008/04-testsuite-license">W3C Test Suite License</a> and the <a href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license">W3C 3-clause BSD License</a>. To contribute to a W3C Test Suite, see the <a href="http://www.w3.org/2004/10/27-testcases">policies and contribution forms</a>. </p> </body> </html>