svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 2837 53d9eb6a7498
parent 2836 ce6cecdb7320
child 2838 459bf80d3f46
equal deleted inserted replaced
2836:ce6cecdb7320 2837:53d9eb6a7498
   114         <xsl:text>100vw</xsl:text>
   114         <xsl:text>100vw</xsl:text>
   115       </xsl:attribute>
   115       </xsl:attribute>
   116       <xsl:apply-templates mode="inline_svg" select="@* | node()"/>
   116       <xsl:apply-templates mode="inline_svg" select="@* | node()"/>
   117     </xsl:copy>
   117     </xsl:copy>
   118   </xsl:template>
   118   </xsl:template>
       
   119   <xsl:template mode="inline_svg" match="svg:svg[@viewBox!=concat('0 0 ', @width, ' ', @height)]">
       
   120     <xsl:message terminate="yes">
       
   121       <xsl:text>Scale other than 1.000 in Inkscape's document properties is not supported</xsl:text>
       
   122     </xsl:message>
       
   123   </xsl:template>
       
   124   <xsl:template mode="inline_svg" match="sodipodi:namedview[@units!='px' or @inkscape:document-units!='px']">
       
   125     <xsl:message terminate="yes">
       
   126       <xsl:text>All units must be set to "px" in Inkscape's document properties</xsl:text>
       
   127     </xsl:message>
       
   128   </xsl:template>
   119   <xsl:template match="/">
   129   <xsl:template match="/">
   120     <xsl:comment>
   130     <xsl:comment>
   121       <xsl:text>Made with SVGHMI. https://beremiz.org</xsl:text>
   131       <xsl:text>Made with SVGHMI. https://beremiz.org</xsl:text>
   122     </xsl:comment>
   132     </xsl:comment>
   123     <xsl:comment>
   133     <xsl:comment>