<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns="http://www.w3.org/2000/svg" 
  xmlns:gmwmsvg="http://www.intergraph.com/GeoMedia/wmsvg" 
>

<xsl:template name="GWMSelectedLayer">
  <!-- Selected layer -->
  <g id="gwmselected" gmwmsvg:pri="-1000" gmwmsvg:typ="l" style="stroke:red;fill:red"></g>
</xsl:template>

<xsl:template name="Redlines">
  <!-- Redlines groups -->  
  <g id="gwmredlines">
    <!-- Redlines groups for added redlines -->
    <g id="gwmrlelements">
    </g>
    <!-- Dynamic redlines group -->
    <g id="gwmrltemplates">
      <!-- RL PolygonPath -->
      <path id="gwmrlpolygon" gmwmsvg:typ="rlpg" d=" " style="fill:rgb(227,210,210);stroke:rgb(255,0,0);stroke-width:20;opacity:0.5;display:none" />

      <!-- RL Rectangle -->
      <rect id="gwmrlrect" gmwmsvg:typ="rlre" x="0" y="0" height="0" width="0" style="fill:rgb(227,210,210);fill-opacity:0.5;stroke:rgb(255,0,0);stroke-width:20;opacity:0.5;display:none" />

      <!-- RL Circle -->
      <circle id="gwmrlcircle" gmwmsvg:typ="rlci" cx="0" cy="0" r="0" style="fill:rgb(227,210,210);fill-opacity:0.5;stroke:rgb(255,0,0);stroke-width:20;opacity:0.5;display:none" />

      <!-- RL PolylinePath -->
      <path id="gwmrlpolyline" gmwmsvg:typ="rlpl" d=" " style="fill:none;stroke:rgb(255,0,0);stroke-width:20;opacity:0.5;display:none" />
      
      <!-- RL Line -->
      <path id="gwmrlline" gmwmsvg:typ="rlli" d=" " style="fill:none;stroke:rgb(255,0,0);stroke-width:20;opacity:0.5;display:none" />

      <!-- RL Point -->
      <rect id="gwmrlpoint" gmwmsvg:typ="rlpt" x="0" y="0" height="30" width="30" rx="15" ry="15" style="fill:rgb(227,210,210);fill-opacity:0.5;stroke:rgb(255,0,0);stroke-width:30;opacity:0.5;display:none"/>  

      <!-- RL Callout, LabeledLeaderLine -->
      <g id="gwmrlcallout" gmwmsvg:typ="rlco">
        <path id="gwmrlcalloutp" gmwmsvg:typ="rlcop" d=" " style="fill:none;stroke:rgb(255,0,0);stroke-width:20;opacity:0.5;display:none"/>
      </g>
        
      <!-- RL Text -->
      <text id="gwmrltext" gmwmsvg:typ="rltx" x="0" y="0" style="alignment-baseline:auto;text-anchor:middle;fill:rgb(200,0,0);stroke:rgb(255,0,0);opacity:0.5;font-size:240;font-family:Arial;display:none"></text>

      <!-- RL Text Keyin -->
      <g id="gwmrltextkeyin" gmwmsvg:typ="rltxk" transform="translate(0,0)" style="display:none"></g>
    </g>
  </g>
</xsl:template>

<xsl:template name="DynamicGraphics">
  <!-- Dynamic graphics (when zooming, etc.) group -->
  <g id="gwmdyntemplates">
    <!-- Draw PolygonPath -->
    <path id="gwmdynpolygon" d=" " style="fill:rgb(171,216,216);fill-opacity:0.5;stroke:rgb(0,0,0);stroke-width:10;display:none" />
     
    <!-- Draw Rectangle -->
    <rect id="gwmdynrect" x="0" y="0" height="0" width="0" style="fill:rgb(171,216,216);fill-opacity:0.5;stroke:rgb(0,0,0);stroke-width:10;display:none" />
      
    <!-- Draw Circle -->
    <circle id="gwmdyncircle" cx="0" cy="0" r="0" style="fill:rgb(171,216,216);fill-opacity:0.5;stroke:rgb(0,0,0);stroke-width:10;display:none" />
   
    <!-- Draw PolylinePath -->
    <path id="gwmdynpolyline" d=" " style="fill:none;stroke:rgb(0,0,0);stroke-width:10;display:none" />
     
    <!-- Draw Line -->
    <path id="gwmdynline" d=" " style="fill:none;stroke:rgb(0,0,0);stroke-width:10;display:none" />
  </g>
  <!-- end dynamic graphics group -->
</xsl:template>

<xsl:template name="AlwaysOnTop">
  <!-- Always on top group - tooltip, cursors, etc. -->
  <g id="gwmontop">
    <!-- start cursors -->
    <g id="gwmcursorcrosshair" style="shape-rendering:crispEdges;stroke-width:1;display:none">
      <line x1="0" y1="-100" x2="0" y2="100" style="stroke:black;"/>
      <line x1="-100" y1="0" x2="100" y2="0" style="stroke:black;"/>
    </g>
    <!-- end cursors -->

    <!-- TOOLTIP -->
    <g id="gwmtooltip">
      <rect id="gwmtooltiprect" x="0" y="0" width="0" height="0" style="display:none;fill:#ffffff;stroke-width:20; stroke:#000000;pointer-events:none"></rect>
      <text id="gwmtooltiptext" x="0" y="0"><xsl:attribute name="style">pointer-events:none;display:none;font-size:12;font-family:<xsl:value-of select="$gwmtooltipfont"/></xsl:attribute>tooltip</text>
    </g>
  </g>
  <!-- end always on top -->
</xsl:template>

</xsl:stylesheet>
