SVG Stylesheet

Steve Ball

$Id: svg.xsl,v 1.1 2003/03/31 21:07:35 balls Exp $


Introduction

This module provides templates for creating SVG images.

Table of Contents

svg:aqua-button-defs - Aqua-style Button
svg:aqua-button - Aqua-style Button

Name

svg:aqua-button-defs — Aqua-style Button

Synopsis

<xsl:template name="svg:aqua-button-defs"><xsl:param name="prefix" select=""aqua-""/><xsl:param name="color1" select=""#d9d9d9""/><xsl:param name="color2" select=""#a9a9a9""/><xsl:param name="color3" select=""#f9f9f9""/>  ...</xsl:template>

Part of the mechanism to create an Aqua-style button. Include a call to this template in your SVG document's defs element. This template only needs to be included once. Use this in conjunction with svg:aqua-button.

The default values for color1, color2 and color3 result in a grey button.

Parameters
prefix

A prefix to append to the identifiers used, so that they don't clash with other identifiers. Default: "aqua-".

color1

The base colour of the button. Default: "#d9d9d9".

color2

A "background" colour for the button. Should be a darker colour than color1. Default: "#a9a9a9".

color3

A highlight colour for the button. Should be a lighter colour than color1. Default: "#f9f9f9".

Returns

Returns SVG result-tree-fragment.



Name

svg:aqua-button — Aqua-style Button

Synopsis

<xsl:template name="svg:aqua-button"><xsl:param name="prefix" select=""aqua-""/>  ...</xsl:template>

Part of the mechanism to create an Aqua-style button. Include a call to this template in your SVG document where you want a button to appear. This template can be used many times in a single SVG document. Use this in conjunction with svg:aqua-button-defs.

Parameters
prefix

A prefix to append to the identifiers used, so that they don't clash with other identifiers. Default: "aqua-".

Returns

Returns SVG result-tree-fragment.