svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 2753 9a7e12e96399
child 2756 f94bc35a023e
equal deleted inserted replaced
2752:a8c9b7f0a54a 2753:9a7e12e96399
       
     1 <?xml version="1.0"?>
       
     2 <xsl:stylesheet xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:exsl="http://exslt.org/common" xmlns:ns="beremiz" xmlns:cc="http://creativecommons.org/ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" extension-element-prefixes="ns" version="1.0" exclude-result-prefixes="ns">
       
     3   <xsl:output method="xml"/>
       
     4   <xsl:variable name="geometry" select="ns:GetSVGGeometry()"/>
       
     5   <xsl:template match="@* | node()">
       
     6     <xsl:copy>
       
     7       <xsl:apply-templates select="@* | node()"/>
       
     8     </xsl:copy>
       
     9   </xsl:template>
       
    10   <xsl:template match="/">
       
    11     <xsl:copy>
       
    12       <xsl:apply-templates mode="testgeo" select="$geometry"/>
       
    13       <xsl:apply-templates select="@* | node()"/>
       
    14     </xsl:copy>
       
    15   </xsl:template>
       
    16   <xsl:template mode="testgeo" match="bbox">
       
    17     <xsl:comment>
       
    18       <xsl:text>ID: </xsl:text>
       
    19       <xsl:value-of select="@id"/>
       
    20       <xsl:text> x: </xsl:text>
       
    21       <xsl:value-of select="@x"/>
       
    22       <xsl:text> y: </xsl:text>
       
    23       <xsl:value-of select="@y"/>
       
    24       <xsl:text> w: </xsl:text>
       
    25       <xsl:value-of select="@w"/>
       
    26       <xsl:text> h: </xsl:text>
       
    27       <xsl:value-of select="@h"/>
       
    28     </xsl:comment>
       
    29   </xsl:template>
       
    30 </xsl:stylesheet>