<!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">
How about "idt" as a name, mnemonic with "identity transform" (or
"identity template"). That would be easily discoverable from the
content completion list, and would not conflict with "id" for id
attributes.<br>
<br>
Lars<br>
<br>
<br>
On 6/17/2010 12:28 AM, Jarno Elovirta wrote:
<blockquote cite="mid:C83F8D13.1E18%25jarno.elovirta@citec.com"
 type="cite">
  <title>Re: [oXygen-user] code template for identity transform</title>
  <font face="Calibri, Verdana, Helvetica, Arial"><span
 style="font-size: 11pt;">I disagree here, &#8220;id&#8221; is a named template I
use on almost all of my projects and it&#8217;s always to do with id
attributes, never identity trasform templates. I personally favor
&#8220;copy&#8221; name for those. Thus I think the code template should remain
unnamed by default.<br>
  <br>
Cheers,<br>
  <br>
Jarno<br>
  <br>
  <br>
On 2010-6-13 15:16, "Lars Huttar" &lt;<a moz-do-not-send="true"
 href="lars_huttar@sil.org">lars_huttar@sil.org</a>&gt; wrote:<br>
  <br>
  </span></font>
  <blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
 style="font-size: 11pt;">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 moz-do-not-send="true"
 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: <br>
    </span></font>
    <blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
 style="font-size: 11pt;">Dear Lars, <br>
&nbsp;<br>
There is already a code template that inserts the recursive copy
template. Its name is "ct" so if you type <br>
&nbsp;<br>
ct <br>
then CTRL+Enter <br>
you should get <br>
&nbsp;<br>
&nbsp;&nbsp;&lt;xsl:template match="node() | @*"&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;xsl:copy&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xsl:apply-templates select="node() | @*"/&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/xsl:copy&gt; <br>
&nbsp;&nbsp;&lt;/xsl:template&gt; <br>
&nbsp;<br>
Best Regards, <br>
George <br>
      </span></font></blockquote>
    <font face="Calibri, Verdana, Helvetica, Arial"><span
 style="font-size: 11pt;"><br>
    <br>
    <hr align="CENTER" size="3" width="95%"></span><font size="2"><span
 style="font-size: 10pt;">_______________________________________________<br>
oXygen-user mailing list<br>
    <a moz-do-not-send="true" href="oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
    <a moz-do-not-send="true"
 href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
    </span></font></font></blockquote>
</blockquote>
<br>
</body>
</html>