Re: SVG12: 6.4 example

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

> * Dean Jackson wrote:
>>>   In
>>> 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="" baseProfile="tiny">
   <rect x="20" y="10" width="60" height="30"/>


<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="" 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