svghmi/inline_svg.ysl2
branchsvghmi
changeset 2967 fc5fbf087b93
parent 2941 ef13a4007538
child 2968 556ef07a7e31
equal deleted inserted replaced
2966:7349063b19d8 2967:fc5fbf087b93
    45 //    the same position in all instances
    45 //    the same position in all instances
    46 //
    46 //
    47 // For now, clone unlinkink applies to descendants of all widget except HMI:Page
    47 // For now, clone unlinkink applies to descendants of all widget except HMI:Page
    48 // TODO: narrow application of clone unlinking to active elements,
    48 // TODO: narrow application of clone unlinking to active elements,
    49 //       while keeping static decoration cloned
    49 //       while keeping static decoration cloned
    50 const "to_unlink", "$hmi_elements[not(@id = $hmi_pages)]//svg:use";
    50 const "to_unlink", "$hmi_elements[not(@id = $hmi_pages)]/descendant-or-self::svg:use";
    51 svgtmpl "svg:use", mode="inline_svg"
    51 svgtmpl "svg:use", mode="inline_svg"
    52 {
    52 {
    53     choose {
    53     choose {
    54         when "@id = $to_unlink/@id"
    54         when "@id = $to_unlink/@id"
    55             call "unlink_clone";
    55             call "unlink_clone";