svghmi/detachable_pages.ysl2
changeset 3877 ecb947e5bbb4
parent 3685 570a738239f4
child 3923 77a1846390ef
equal deleted inserted replaced
3876:7d83cd94e3cc 3877:ecb947e5bbb4
   110 const "discardable_elements", "//svg:*[not(@id = $required_elements/@id)]";
   110 const "discardable_elements", "//svg:*[not(@id = $required_elements/@id)]";
   111 
   111 
   112 def "func:sumarized_elements" {
   112 def "func:sumarized_elements" {
   113     param "elements";
   113     param "elements";
   114     const "short_list", "$elements[not(ancestor::*/@id = $elements/@id)]";
   114     const "short_list", "$elements[not(ancestor::*/@id = $elements/@id)]";
   115     const "filled_groups", """$short_list/parent::*[
   115     const "filled_groups", """$short_list/parent::svg:g[
   116         not(child::*[
   116         not(child::*[
   117             not(@id = $discardable_elements/@id) and
   117             not(@id = $discardable_elements/@id) and
   118             not(@id = $short_list/@id)
   118             not(@id = $short_list/@id)
   119         ])]""";
   119         ])]""";
   120     const "groups_to_add", "$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]";
   120     const "groups_to_add", "$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]";