Hi Radu,<div>No, I have not tried code templates yet, but I have been looking for them (just passively).  I have to admit, I like the product more and more everytime I use it, and I can only complain about a few items.</div>
<div>Code templates will be useful, thanks.</div><div>Karl..<br><br><div class="gmail_quote">On Thu, May 26, 2011 at 12:42 AM, Radu Coravu <span dir="ltr">&lt;<a href="mailto:radu_coravu@sync.ro">radu_coravu@sync.ro</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Karl,<br>
<br>
I understand the use case, indeed it seems useful sometimes to switch<br>
between learning the XML and using the associated schema.<br>
It seems that older versions of Oxygen behaved like you suggested so<br>
somehow the behavior was lost in the newest versions. I added an issue<br>
to our issues list and we&#39;ll investigate.<br>
<br>
Have you tried our code templates support?<br>
<a href="http://www.oxygenxml.com/doc/ug-oxygen/topics/preferences-editor-code-templates.html" target="_blank">http://www.oxygenxml.com/doc/ug-oxygen/topics/preferences-editor-code-templates.html</a><br>
They might also be useful to you.<br>
<div class="im"><br>
Regards,<br>
Radu<br>
<br>
Radu Coravu<br>
&lt;oXygen/&gt;  XML Editor, Schema Editor and XSLT Editor/Debugger<br>
<a href="http://www.oxygenxml.com" target="_blank">http://www.oxygenxml.com</a><br>
<br>
<br>
</div><div class="im">On 5/26/2011 9:46 AM, Karl Stubsjoen wrote:<br>
&gt; When composing Xml from a schema it is adequate to work with schema<br>
&gt; definition provided, but eventually your Xml &quot;learns&quot; more than your<br>
&gt; schema.  For example, lets say you have an element item and an attribute<br>
&gt; width on the item.  So you type this: &lt;item width=&quot;24px&quot;&gt;some<br>
&gt; item&lt;/item&gt;  then later you type this again with different width value<br>
&gt; &lt;item width=&quot;32px&quot;&gt;some item&lt;/item&gt;..  Perhaps you are going to do this<br>
&gt; a dozen more times and the only 2 width values you ever intend to work<br>
&gt; with is: 24px and 32px..  At this point CTRL+L learns this and now<br>
&gt; oxygen is popping for a width attribute and 2 possible width values; now<br>
&gt; it is easy to select 1 or the other, not to mention fast.<br>
&gt; Now the problem, I&#39;m further down in my Xml now and I need information<br>
&gt; available from the schema, which of course, is not available anymore.<br>
&gt;<br>
&gt; Karl..<br>
&gt;<br>
&gt; On Wed, May 25, 2011 at 11:25 PM, Radu Coravu &lt;<a href="mailto:radu_coravu@sync.ro">radu_coravu@sync.ro</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:radu_coravu@sync.ro">radu_coravu@sync.ro</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi Karl,<br>
&gt;<br>
&gt;     Your observations are correct, there is no way to un-learn except<br>
&gt;     reopening the XML.<br>
&gt;     We mostly intended the &quot;Learn Structure&quot; action to be called on XML<br>
&gt;     files without associated grammars (XML Schemas, DTDs).<br>
&gt;     Can you tell us more about your use case? Why do you call the &quot;Learn<br>
&gt;     Structure&quot;?<br>
&gt;<br>
&gt;     Regards,<br>
&gt;     Radu<br>
&gt;<br>
&gt;     Radu Coravu<br>
&gt;     &lt;oXygen/&gt;  XML Editor, Schema Editor and XSLT Editor/Debugger<br>
&gt;     <a href="http://www.oxygenxml.com" target="_blank">http://www.oxygenxml.com</a><br>
&gt;<br>
&gt;     On 5/26/2011 6:52 AM, Karl Stubsjoen wrote:<br>
&gt;      &gt; When composing an xml document that has a schema definition<br>
&gt;     associated I<br>
&gt;      &gt; get the nice intellisense and auto completion, however if I CTRL+L<br>
&gt;      &gt; &quot;learn&quot; the document I am stuck; I do not know how to back to the<br>
&gt;     schema<br>
&gt;      &gt; association.  The reset cache and validate doesn&#39;t work and I do not<br>
&gt;      &gt; know what else to do besides reopening the xml.<br>
&gt;      &gt;<br>
&gt;      &gt; --<br>
&gt;      &gt; Karl Stubsjoen<br>
&gt;      &gt; MeetScoresOnline.com<br>
</div>&gt;      &gt; <a href="tel:%28602%29%20845-0006" value="+16028450006">(602) 845-0006</a> &lt;tel:%28602%29%20845-0006&gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt; _______________________________________________<br>
&gt;      &gt; oXygen-user mailing list<br>
&gt;      &gt; <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a> &lt;mailto:<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>&gt;<br>
<div class="im">&gt;      &gt; <a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
&gt;     _______________________________________________<br>
&gt;     oXygen-user mailing list<br>
</div>&gt;     <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a> &lt;mailto:<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>&gt;<br>
<div class="im">&gt;     <a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Karl Stubsjoen<br>
&gt; MeetScoresOnline.com<br>
&gt; <a href="tel:%28602%29%20845-0006" value="+16028450006">(602) 845-0006</a><br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Karl Stubsjoen<br>MeetScoresOnline.com<br>(602) 845-0006<br>
</div>