equal
deleted
inserted
replaced
71 const "discardable_elements", "//svg:*[not(@id = $required_elements/@id)]"; |
71 const "discardable_elements", "//svg:*[not(@id = $required_elements/@id)]"; |
72 |
72 |
73 def "func:sumarized_elements" { |
73 def "func:sumarized_elements" { |
74 param "elements"; |
74 param "elements"; |
75 const "short_list", "$elements[not(ancestor::*/@id = $elements/@id)]"; |
75 const "short_list", "$elements[not(ancestor::*/@id = $elements/@id)]"; |
76 const "filled_groups", """$short_list/parent::svg:*[ |
76 const "filled_groups", """$short_list/parent::*[ |
77 not(descendant::*[ |
77 not(child::*[ |
78 not(self::svg:g) and |
|
79 not(@id = $discardable_elements/@id) and |
78 not(@id = $discardable_elements/@id) and |
80 not(@id = $short_list/descendant-or-self::*[not(self::svg:g)]/@id) |
79 not(@id = $short_list/@id) |
81 ])]"""; |
80 ])]"""; |
82 const "groups_to_add", "$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]"; |
81 const "groups_to_add", "$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]"; |
83 result "$groups_to_add | $short_list[not(ancestor::svg:g/@id = $filled_groups/@id)]"; |
82 result "$groups_to_add | $short_list[not(ancestor::*/@id = $filled_groups/@id)]"; |
84 } |
83 } |
85 |
84 |
86 def "func:detachable_elements" { |
85 def "func:detachable_elements" { |
87 param "pages"; |
86 param "pages"; |
88 choose{ |
87 choose{ |