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 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:55 UTC