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

Re: Error in SVG 1.1 CR 6.6?

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Fri, 25 Oct 2002 14:24:03 +0200
Message-ID: <3DB937E3.6090104@pinkjuice.com>
To: www-svg@w3.org

AndrewWatt2001@aol.com wrote:


> Did you realise that you can delete all the following code:
> 
> <!-- default is to copy input element -->
> <xsl:template match="*|@*|text()">
>   <xsl:copy>
>     <xsl:apply-templates select="*|@*|text()"/>
>   </xsl:copy>
> </xsl:template>
> 
> and it will still work?
> 
> The default XSLT templates need not be expressed in code.


AFAICS, none of the Built-in Template Rules
   http://www.w3.org/TR/xslt#built-in-rule
copy elements.

Also see
   http://www.w3.org/TR/xslt#copying
"
For example, the identity transformation can be written using xsl:copy 
as follows:

<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
"

But I might miss something.

Tobi

-- 
http://www.pinkjuice.com/
Received on Friday, 25 October 2002 08:24:59 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:23 GMT