<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#cccccc" text="#000000">
Thank you for this. I am glad but not very surprised to see Oxygen
already offers this... it usually has everything that would be commonly
useful!<br>
<br>
The only thing I see lacking here is discoverability. Next time I go to
use this pattern, if it's not soon, I'm not sure how I will remember to
use "ct", as I do not remember hearing "copy template" or "recursive
copy template" as a term for the pattern.<br>
Is it a well-known term? I've only heard of it as the "identity
transformation". E.g. at <a class="moz-txt-link-freetext" href="http://www.w3.org/TR/xslt#copying">http://www.w3.org/TR/xslt#copying</a> it is
referred to that way; and a yahoo search for xslt "identity transform"
gives me about 100x as many results as for xslt "recursive copy
template". (xslt "copy template" gives about 20x, but with many false
positives.)<br>
<br>
Would it be reasonable to add "id" as a name for this code template?<br>
<br>
Thanks,<br>
Lars<br>
<br>
On 6/12/2010 2:14 PM, George Cristian Bina wrote:
<blockquote cite="mid:4C13DC94.4030202@oxygenxml.com" type="cite">Dear
Lars,
<br>
<br>
There is already a code template that inserts the recursive copy
template. Its name is "ct" so if you type
<br>
<br>
ct
<br>
then CTRL+Enter
<br>
you should get
<br>
<br>
<xsl:template match="node() | @*">
<br>
<xsl:copy>
<br>
<xsl:apply-templates select="node() | @*"/>
<br>
</xsl:copy>
<br>
</xsl:template>
<br>
<br>
Best Regards,
<br>
George
<br>
</blockquote>
<br>
</body>
</html>