svghmi/gen_index_xhtml.ysl2
branchsvghmi
changeset 2837 53d9eb6a7498
parent 2836 ce6cecdb7320
child 2838 459bf80d3f46
equal deleted inserted replaced
2836:ce6cecdb7320 2837:53d9eb6a7498
   118     template "svg:svg", mode="inline_svg" xsl:copy {
   118     template "svg:svg", mode="inline_svg" xsl:copy {
   119         attrib "preserveAspectRatio" > none
   119         attrib "preserveAspectRatio" > none
   120         attrib "height" > 100vh
   120         attrib "height" > 100vh
   121         attrib "width" > 100vw
   121         attrib "width" > 100vw
   122         apply "@* | node()", mode="inline_svg";
   122         apply "@* | node()", mode="inline_svg";
       
   123     }
       
   124     /* ensure that coordinate in CSV file generated by inkscape are in default reference frame */
       
   125     template "svg:svg[@viewBox!=concat('0 0 ', @width, ' ', @height)]", mode="inline_svg" {
       
   126         error > ViewBox settings other than X=0, Y=0 and Scale=1 are not supported
       
   127     }
       
   128     /* ensure that coordinate in CSV file generated by inkscape match svg default unit */
       
   129     template "sodipodi:namedview[@units!='px' or @inkscape:document-units!='px']", mode="inline_svg" {
       
   130         error > All units must be set to "px" in Inkscape's document properties
   123     }
   131     }
   124 
   132 
   125     /*const "mark" > =HMI=\n*/
   133     /*const "mark" > =HMI=\n*/
   126 
   134 
   127     /* copy root node and add geometry as comment for a test */
   135     /* copy root node and add geometry as comment for a test */