svghmi/inline_svg.ysl2
changeset 3384 bd337d21f686
parent 3186 1e9b9d7451cd
child 3393 a65bcbb6af20
equal deleted inserted replaced
3383:a3b8cfd89648 3384:bd337d21f686
    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)";