Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (54 sloc) 2.14 KB
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="object.xsl"?>
<page xmlns:x="http://www.yandex.ru/xscript" xmlns:xi="http://www.w3.org/2001/XInclude">
<xscript xslt-dont-apply="no" allow-methods="get">
<xi:include href="include/headers-include.xml"/>
<xslt-param id="test-xslt" type="string">1</xslt-param>
<xslt-param id="strparam" type="string">1</xslt-param>
</xscript>
<x:mist>
<method>set_state_long</method>
<param type="string" id="testkey">val-1</param>
<param type="long" id="testvalue">1</param>
<xslt-param id="longparam" type="long">23</xslt-param>
</x:mist>
<nested>
<x:mist>
<guard>nonexistent</guard>
<method>set_state_string</method>
<param type="string">val-2</param>
<param type="string">string-2</param>
<xslt-param id="longparam" type="statearg">val-1</xslt-param>
</x:mist>
<nested-twice>
<x:mist>
<guard>guardkey</guard>
<method>set_state_long</method>
<param type="string">val-3</param>
<param type="long">3</param>
</x:mist>
</nested-twice>
<x:mist>
<method>set_state_string</method>
<param type="string">val-4</param>
<param type="string">string-4</param>
<xpath expr="/state/@type" result="result_expr"/>
<xpath expr="/state/@type" result="delim_expr" delim="_"/>
</x:mist>
</nested>
<x:mist>
<method>set_state_string</method>
<param type="string">val-4</param>
<param type="statearg">result_expr</param>
</x:mist>
<x:mist method="dump_state">
<xpath expr="boolean(/*[name() = 'state_dump'])" result="test-xpath-bool-true"/>
<xpath expr="boolean(/*[name() != 'state_dump'])" result="test-xpath-bool-false"/>
<xpath expr="boolean(/*[name() != 'test'])" result="test-xpath-bool-true2"/>
<xpath expr="count(/*[name()])" result="test-xpath-number1"/>
<xpath expr="count(/state/*[name()])" result="test-xpath-number0"/>
<xpath expr="count(/state_dump/param[@name])" result="test-xpath-number4"/>
<xpath expr="count(/state_dump/param[@type = 'String'])" result="test-xpath-number3"/>
<xpath expr="string(/state_dump/param[@name = 'val-4'])" result="test-xpath-string"/>
</x:mist>
</page>