Code completion in XSL editor
Posted: Wed Jun 11, 2008 8:36 pm
So, I have a number of "Code Templates" in Preferences⇨Editor⇨Templates⇨Code Templates. These templates are for all of my frequently-used namespaces.
In the prefs dialog I set them to "XML editor", because namespaces are portable (one of their chief purposes they were invented, no?), and I often don't know what document I'm going to use them in ahead of time. I just want them there when I need them, regardless of the type of XML I working on at any given moment.
However, unless I'm doing something wrong, it sure looks like Oxygen is treating the XSL editor differently. The code templates work as expected, popping up when I press CTL+Space, in most XML documents. But for some reason when I attempt the same thing in an XSL document, it doesn't work. (And the "Use Content Completion" option in preferences is checked.)
This makes me sad.
Since XSL is XML, I figured the "editor" option in the Code Templates dialog was to limit a template to XSL documents, not to fence out templates with "XML" as their editor.
Assuming that is the correct behavior (which still makes me sad
), that means I've got the content completion I want in all XML documents, unless I'm working on an XSL document. This may be counter-intuitive, but I might be willing to deal with it if there were a "copy" feature for code templates, so that I wouldn't have to manually enter all that info again with the trivial difference of changing editor from "XML" to "XSL".
Am I missing something? (I really hope so!)
Little help?
In the prefs dialog I set them to "XML editor", because namespaces are portable (one of their chief purposes they were invented, no?), and I often don't know what document I'm going to use them in ahead of time. I just want them there when I need them, regardless of the type of XML I working on at any given moment.
However, unless I'm doing something wrong, it sure looks like Oxygen is treating the XSL editor differently. The code templates work as expected, popping up when I press CTL+Space, in most XML documents. But for some reason when I attempt the same thing in an XSL document, it doesn't work. (And the "Use Content Completion" option in preferences is checked.)
This makes me sad.

Since XSL is XML, I figured the "editor" option in the Code Templates dialog was to limit a template to XSL documents, not to fence out templates with "XML" as their editor.
Assuming that is the correct behavior (which still makes me sad

Am I missing something? (I really hope so!)
Little help?
