svghmi/gen_index_xhtml.ysl2
branchsvghmi
changeset 2937 9226a830fbc3
parent 2913 ac4328e69079
child 2938 1379cd5c69dd
equal deleted inserted replaced
2936:53fb11263ff1 2937:9226a830fbc3
     1 include yslt_noindent.yml2
     1 include yslt_noindent.yml2
     2 
     2 
     3 // overrides yslt's output function to set CDATA
     3 // overrides yslt's output function to set CDATA
     4 decl output(method, cdata-section-elements="xhtml:script");
     4 decl output(method, cdata-section-elements="xhtml:script");
     5 
       
     6 in xsl decl labels(*ptr, name="defs_by_labels") alias call-template {
       
     7     with "hmi_element", "$hmi_element";
       
     8     with "labels"{text *ptr};
       
     9 };
       
    10 
       
    11 in xsl decl optional_labels(*ptr, name="defs_by_labels") alias call-template {
       
    12     with "hmi_element", "$hmi_element";
       
    13     with "labels"{text *ptr};
       
    14     with "mandatory","'no'";
       
    15 };
       
    16 
       
    17 in xsl decl svgtmpl(match, xmlns="http://www.w3.org/2000/svg") alias template;
       
    18 in xsl decl svgfunc(name, xmlns="http://www.w3.org/2000/svg") alias template;
       
    19 
     5 
    20 istylesheet
     6 istylesheet
    21             /* From Inkscape */
     7             /* From Inkscape */
    22             xmlns:dc="http://purl.org/dc/elements/1.1/"
     8             xmlns:dc="http://purl.org/dc/elements/1.1/"
    23             xmlns:cc="http://creativecommons.org/ns#"
     9             xmlns:cc="http://creativecommons.org/ns#"