svghmi/detachable_pages.ysl2
branchsvghmi
changeset 2894 4cf9ad35e6d0
parent 2888 7beddc62a388
child 2901 3f5194bba67d
equal deleted inserted replaced
2893:d57a12b8f5db 2894:4cf9ad35e6d0
    89 
    89 
    90 // Avoid nested detachables
    90 // Avoid nested detachables
    91 const "_detachable_elements", "func:detachable_elements($hmi_pages)";
    91 const "_detachable_elements", "func:detachable_elements($hmi_pages)";
    92 const "detachable_elements", "$_detachable_elements[not(ancestor::*/@id = $_detachable_elements/@id)]";
    92 const "detachable_elements", "$_detachable_elements[not(ancestor::*/@id = $_detachable_elements/@id)]";
    93 
    93 
    94 def "func:is_descendant_path" {
       
    95     param "descend";
       
    96     param "ancest";
       
    97     result "string-length($ancest) > 0 and starts-with($descend,$ancest)";
       
    98 }
       
    99 
       
   100 
       
   101 const "forEach_widgets_ids", "$parsed_widgets/widget[@type = 'ForEach']/@id";
    94 const "forEach_widgets_ids", "$parsed_widgets/widget[@type = 'ForEach']/@id";
   102 const "forEach_widgets", "$hmi_elements[@id = $forEach_widgets_ids]";
    95 const "forEach_widgets", "$hmi_elements[@id = $forEach_widgets_ids]";
   103 const "in_forEach_widget_ids", "func:refered_elements($forEach_widgets)[not(@id = $forEach_widgets_ids)]/@id";
    96 const "in_forEach_widget_ids", "func:refered_elements($forEach_widgets)[not(@id = $forEach_widgets_ids)]/@id";
   104 
    97 
   105 template "svg:*", mode="page_desc" {
    98 template "svg:*", mode="page_desc" {