equal
deleted
inserted
replaced
54 // |
54 // |
55 // For now, clone unlinkink applies to descendants of all widget except HMI:Page |
55 // For now, clone unlinkink applies to descendants of all widget except HMI:Page |
56 // TODO: narrow application of clone unlinking to active elements, |
56 // TODO: narrow application of clone unlinking to active elements, |
57 // while keeping static decoration cloned |
57 // while keeping static decoration cloned |
58 const "targets_not_to_unlink", "$hmi_lists/descendant-or-self::svg:*"; |
58 const "targets_not_to_unlink", "$hmi_lists/descendant-or-self::svg:*"; |
59 const "to_unlink", "$hmi_elements[not(@id = $hmi_pages/@id)]/descendant-or-self::svg:use"; |
59 const "to_unlink", "$hmi_widgets/descendant-or-self::svg:use"; |
60 |
60 |
61 def "func:is_unlinkable" { |
61 def "func:is_unlinkable" { |
62 param "targetid"; |
62 param "targetid"; |
63 param "eltid"; |
63 param "eltid"; |
64 result "$eltid = $to_unlink/@id and not($targetid = $targets_not_to_unlink/@id)"; |
64 result "$eltid = $to_unlink/@id and not($targetid = $targets_not_to_unlink/@id)"; |