|
3 | 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
4 | 4 | xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
5 | 5 | version="2.0">
|
6 |
| - |
7 |
| - <xsl:variable name="defaultSvgShapeStrokeColor" select="'blue'" as="xs:string"/> |
8 |
| - <xsl:variable name="defaultSvgHotspotTextColor" select="'white'" as="xs:string"/> |
| 6 | + |
| 7 | + <xsl:param name="imagemap.hotspot.shape.color" select="'blue'" as="xs:string"/> |
| 8 | + <xsl:param name="imagemap.hotspot.text.color" select="'white'" as="xs:string"/> |
9 | 9 |
|
10 | 10 | <xsl:attribute-set name="svg_shape_container">
|
11 | 11 | <xsl:attribute name="absolute-position">absolute</xsl:attribute>
|
|
16 | 16 | </xsl:attribute-set>
|
17 | 17 |
|
18 | 18 | <xsl:attribute-set name="svg_shape">
|
19 |
| - <xsl:attribute name="stroke"><xsl:value-of select="$defaultSvgShapeStrokeColor"/></xsl:attribute> |
| 19 | + <xsl:attribute name="stroke"><xsl:value-of select="$imagemap.hotspot.shape.color"/></xsl:attribute> |
20 | 20 | <xsl:attribute name="stroke-width">1</xsl:attribute>
|
21 | 21 | <xsl:attribute name="fill-opacity">0</xsl:attribute>
|
22 | 22 | <xsl:attribute name="stroke-opacity">1</xsl:attribute>
|
|
29 | 29 | <xsl:attribute-set name="svg_shape_circle" use-attribute-sets="svg_shape"/>
|
30 | 30 |
|
31 | 31 | <xsl:attribute-set name="svg_hotspot_circle">
|
32 |
| - <xsl:attribute name="stroke"><xsl:value-of select="$defaultSvgShapeStrokeColor"/></xsl:attribute> |
33 |
| - <xsl:attribute name="fill"><xsl:value-of select="$defaultSvgShapeStrokeColor"/></xsl:attribute> |
| 32 | + <xsl:attribute name="stroke"><xsl:value-of select="$imagemap.hotspot.shape.color"/></xsl:attribute> |
| 33 | + <xsl:attribute name="fill"><xsl:value-of select="$imagemap.hotspot.shape.color"/></xsl:attribute> |
34 | 34 | <xsl:attribute name="stroke-width">1</xsl:attribute>
|
35 | 35 | <xsl:attribute name="fill-opacity">1</xsl:attribute>
|
36 | 36 | <xsl:attribute name="stroke-opacity">1</xsl:attribute>
|
37 | 37 | </xsl:attribute-set>
|
38 | 38 |
|
39 | 39 | <xsl:attribute-set name="svg_hotspot_circle_content">
|
40 |
| - <xsl:attribute name="fill"><xsl:value-of select="$defaultSvgHotspotTextColor"/></xsl:attribute> |
| 40 | + <xsl:attribute name="fill"><xsl:value-of select="$imagemap.hotspot.text.color"/></xsl:attribute> |
41 | 41 | <xsl:attribute name="font-size">0.4em</xsl:attribute>
|
42 | 42 | <xsl:attribute name="font-weight">bold</xsl:attribute>
|
43 | 43 | <xsl:attribute name="font-family">sans-serif</xsl:attribute>
|
|
0 commit comments