Re: [xml-dev] Visual XML Editor Customizations
Rich Unger <[email protected]> Fri, 29 Nov 2002 14:10:10 -0800
| Newsgroups | gmane.comp.java.netbeans.modules.xml.devel |
|---|---|
| Organization | CollabNet Hosting |
| Message-ID | <[email protected]> |
On Fri, 29 Nov 2002 15:25:28 +0100, Petr Kuzel <[email protected]> wrote: >Hello Rich, > >I tried the customization framework by creating profile >for XML Filesystem and I found it pretty exciting. Ooh, I'm glowing :-) >I have two suggestions: > - bind using doctype public ID instead of root element name Good one. It brings up a larger problem, which I've been mulling over, though. In the case where schemas are being used, there's no really good way to specify a document type. These documents generally specify a unique string for a namespace. The framework right now assumes that the root namespace (xmlns) is a sufficient unique identifier for a doctype. > - extend element text format by entry for element name > (so could ommit :-)) e.g. "{#element} {name}" for my file > customization. Another good one. I'm out of the office next week, so I probably won't get to these for a couple of weeks. If I can find the time, I'll also make a simple editor for some doctype (maybe xhtml), with a sample customizer, to give a template to other module developers. I would use one of the ones I've already written for VBuilder, but they're actually quite complicated, as the customizers rely on other parts of our system (voice grammar parsers, etc), so it wouldn't be all that easy to understand. > >and one complain. It seems that opening editor is times slower >now. I have not investigated whether it's caused by completion >(my first guess) or customiations, yet. Well, the first time a document of a particular doctype is opened, the DTD needs to be parsed (for syntax completion) and the tag map needs to be parsed (for doctype customization). Other than that, I don't know where the latency would be introduced. I haven't run it through any kind of profiler, though. Rich