Branch: Tag:

2004-12-01

2004-12-01 17:01:27 by Martin Stjernholm <mast@lysator.liu.se>

Test filtering on attributes in the <define> tag.

Rev: server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1.65

660:   </test>      <test> +  <rxml +  ><define container="x"><contents copy-of="*[@foo]"/></define +  ><x><a foo="bar"/><b bar="foo"/><c foo="gnu"/><d foo="bar"/></x +  ></rxml> +  <result><a foo="bar"/><c foo="gnu"/><d foo="bar"/></result> + </test> +  + <test> +  <rxml +  ><define container="x"><contents copy-of="b[@foo]"/></define +  ><x><a foo="bar"/><b bar="foo"/><c foo="gnu"/><d foo="bar"/></x +  ></rxml> +  <result></result> + </test> +  + <test> +  <rxml +  ><define container="x"><contents copy-of="*[@foo='bar']"/></define +  ><x><a foo="bar"/><b bar="foo"/><c foo="gnu"/><d foo="bar"/></x +  ></rxml> +  <result><a foo="bar"/><d foo="bar"/></result> + </test> +  + <test> +  <rxml +  ><define container="x"><contents copy-of="* [ @ foo = &quot;bar&quot; ]"/></define +  ><x><a foo="bar"/><b bar="foo"/><c foo="gnu"/><d foo="bar"/></x +  ></rxml> +  <result><a foo="bar"/><d foo="bar"/></result> + </test> +  + <test> +  <rxml +  ><define container="x"><contents copy-of="* [ @ foo = &quot;bar &quot; ]"/></define +  ><x><a foo="bar"/><b bar="foo"/><c foo="gnu"/><d foo="bar"/></x +  ></rxml> +  <result></result> + </test> +  + <test> +  <rxml +  ><define container="x"><contents copy-of="*/@foo[@foo]"/></define +  ><x><a foo="bar"/><b bar="foo"/><c foo="gnu"/><d foo="bar"/></x +  ></rxml> +  <result> foo="bar" foo="gnu" foo="bar"</result> + </test> +  + <test> +  <rxml +  ><define container="x"><contents copy-of="*/@foo[@foo='bar']"/></define +  ><x><a foo="bar"/><b bar="foo"/><c foo="gnu"/><d foo="bar"/></x +  ></rxml> +  <result> foo="bar" foo="bar"</result> + </test> +  + <test> +  <rxml +  ><define container="x"><contents copy-of="a[@foo]/y"/></define +  ><x><a foo="bar"><y id="1"/></a><a><y id="2"/></a><a foo="gnu"><y id="3"/></a></x +  ></rxml> +  <result><y id="1"/><y id="3"/></result> + </test> +  + <test>    <rxml><define variable="var.i" preparse=""><contents/></define></rxml>    <glob>[Error (parse): *]</glob>   </test>