W3C home > Mailing lists > Public > www-svg@w3.org > October 2005

Re: SVG12: 6.4 example

From: Dean Jackson <dean@w3.org>
Date: Mon, 31 Oct 2005 10:45:56 +1100
Message-Id: <D2F84D22-AB51-4F53-949F-DA26E68F39C0@w3.org>
Cc: www-svg@w3.org
To: Bjoern Hoehrmann <derhoermi@gmx.net>

On 30/05/2005, at 12:35 PM, Bjoern Hoehrmann wrote:

> * Dean Jackson wrote:
>>>   In http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/styling.html
>>> section 6.4 the examples do not make much sense to me, a conforming
>>> XSLT 1.0 would not produce the result the draft claims. Please  
>>> change
>>> the draft such that these examples are correct.
>> Fixed. Thanks.
> Could you cite the new examples so I can check them?

Input XSL

<?xml version="1.0" standalone="no"?>
<xsl:stylesheet version="1.0"
     doctype-public="-//W3C//DTD SVG 1.1//EN"
   <!-- Add version to topmost 'svg' element -->
   <xsl:template match="/svg:svg">
       <xsl:copy-of select="@*"/>
       <xsl:attribute name="version">1.1</xsl:attribute>
   <!-- Add styling to all 'rect' elements -->
   <xsl:template match="svg:rect">
       <xsl:copy-of select="@*"/>
       <xsl:attribute name="fill">red</xsl:attribute>
       <xsl:attribute name="stroke">blue</xsl:attribute>
       <xsl:attribute name="stroke-width">3</xsl:attribute>

Input SVG

<?xml version="1.0"?>
<svg width="10cm" height="5cm" viewBox="0 0 100 50"
      xmlns="http://www.w3.org/2000/svg" baseProfile="tiny">
   <rect x="20" y="10" width="60" height="30"/>


<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="10cm" height="5cm"
      viewBox="0 0 100 50" version="1.1" baseProfile="tiny">
   <rect x="20" y="10" width="60" height="30" fill="red"  
stroke="blue" stroke-width="3"/>

If you disagree with this resolution then please say so within two  
weeks. Otherwise we assume you accept.

Received on Sunday, 30 October 2005 23:46:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:04 UTC