svghmi/gen_index_xhtml.ysl2
branchsvghmi
changeset 2941 ef13a4007538
parent 2940 034b6ce4f885
child 2943 304e88bae115
equal deleted inserted replaced
2940:034b6ce4f885 2941:ef13a4007538
    31             xmlns:ns="beremiz"
    31             xmlns:ns="beremiz"
    32 
    32 
    33             extension-element-prefixes="ns func exsl regexp str dyn"
    33             extension-element-prefixes="ns func exsl regexp str dyn"
    34             exclude-result-prefixes="ns func exsl regexp str dyn debug preamble epilogue" {
    34             exclude-result-prefixes="ns func exsl regexp str dyn debug preamble epilogue" {
    35 
    35 
       
    36     const "svg", "/svg:svg";
    36     const "hmi_elements", "//svg:*[starts-with(@inkscape:label, 'HMI:')]";
    37     const "hmi_elements", "//svg:*[starts-with(@inkscape:label, 'HMI:')]";
       
    38 
    37 
    39 
    38     include hmi_tree.ysl2
    40     include hmi_tree.ysl2
    39 
    41 
    40     include geometry.ysl2
    42     include geometry.ysl2
    41 
    43 
    45 
    47 
    46     include widgets_common.ysl2
    48     include widgets_common.ysl2
    47 
    49 
    48     include widget_*.ysl2
    50     include widget_*.ysl2
    49 
    51 
    50     include scripts.ysl2
       
    51 
    52 
    52     template "/" {
    53     template "/" {
    53         comment > Made with SVGHMI. https://beremiz.org
    54         comment > Made with SVGHMI. https://beremiz.org
    54 
    55 
    55         // all debug output from included definitions, as comments
    56         // all debug output from included definitions, as comments
    66             head;
    67             head;
    67             body style="margin:0;overflow:hidden;" {
    68             body style="margin:0;overflow:hidden;" {
    68                 // Inline SVG
    69                 // Inline SVG
    69                 copy "$result_svg";
    70                 copy "$result_svg";
    70                 script{
    71                 script{
    71                     call "scripts";
    72                     apply "document('')/*/preamble:*";
       
    73 
       
    74                     apply "document('')/*/epilogue:*";
       
    75 
       
    76                     include text svghmi.js
       
    77 
    72                 }
    78                 }
    73             }
    79             }
    74         }
    80         }
    75     }
    81     }
    76 }
    82 }