<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xlink="http://www.w3.org/1999/xlink" > <xsl:output method="xml" encoding="ISO-8859-1" indent="yes" /> <xsl:template match="/"> <svg width="200" height="50"> <a> <xsl:attribute name="xlink:href"> <xsl:value-of select="/button/url" /> </xsl:attribute> <rect x="3" y="6" width="193" height="37" style="fill:rgb(0,0,255);stroke:rgb(0,0,0);stroke-width:1"/> <text x="26px" y="17px" transform="translate(13 12)" style="fill:rgb(0,0,0);font-size:24;font-family:Arial"> <xsl:value-of select="/button/text" /> </text> </a> </svg> </xsl:template> </xsl:stylesheet> |