Roxen.git
/
server
/
etc
/
test
/
tests
/
rxml
/
RoxenTest_BaseRXML.xml
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:382:
<rxml ><define tag=post>post</define ><define tag=pre>pre<noparse><post/><date/></noparse></define ><define container=foo preparse=""><pre/>&_.contents;<contents/>&_.arg;</define ><foo arg="a">c</foo ></rxml> <result>pre<post/><date/>cca</result> </test> <test>
+
<rxml
+
><define container="x"
+
><contents copy-of="a/node()"/>
+
<contents copy-of="processing-instruction()"/>
+
<contents copy-of="processing-instruction(y)"/>
+
<contents copy-of="processing-instruction()[-1]"/>
+
<contents copy-of="comment()[1]"/>
+
<contents value-of="processing-instruction(x)"/>
+
<contents value-of="comment()"/>
+
<contents copy-of="text()"/>
+
</define
+
><x>aä & b <?x & y?><!--c--> <?y?><a
+
x='&'><foo<a x='1' g="'">y</a></a
+
><b y='<' p='q'
+
/>><a x='2' y='p'><a x='3'/><a x='4'/></a
+
><!--d--></x
+
></rxml>
+
<result><foo<a x='1' g="'">y</a><a x='3'/><a x='4'/>
+
<?x & y?><?y?>
+
<?y?>
+
<?y?>
+
<!--c-->
+
&amp; y
+
c
+
aä & b >
+
</result>
+
</test>
+
+
<test>
<rxml type="string"> <define container="x"> <contents copy-of="*[-1]"/> &var.foo; <contents copy-of="*[1]"/> &var.foo; </define> <x> <set variable="var.foo" value="first"/> <set variable="var.foo" value="second"/>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:409:
<define container="x"> <contents copy-of="*/@*"/> </define> <set variable="var.foo">up</set> <set variable="var.bar">down</set> <x> <y a="&var.foo;"/> <y b="&var.bar;"/> </x> </rxml>
-
<result>a="up"b="down"</result>
+
<result>a="up"
b="down"</result>
</test> <test> <rxml type="string"> <define container="x"> <contents copy-of="*[-1]/@*"/> </define> <set variable="var.foo">up</set> <set variable="var.bar">down</set> <x>