jEdit Community - Resources for users of the jEdit Text Editor
Adding new dtd or xsd for autocompletion
Submitted by dverdin on Friday, 20 August, 2004 - 10:01
Hi,

I want to use autocompletion in Jedit for XML documents.
These documents are used in cocoon to create forms. They have their own namespaces and dtd or xsd.
I would like to use the autocompletion fonction, but I don't know how to tell this to jedit. I guess I need to have local copies of the dtds somewhere on my system, and declare it to Jedit. How can I do it ?

Another question, probably related : I don't understand what are the catalogs in the XML plugin, what is their usage, and what kind of file they are supposed to be.

Well, it's probably dumb questions, but I'm quite new to Jedit, and I need to learn...
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Ooops...
by dverdin on Fri, 20/08/2004 - 13:06
All verifications done, it seems that, though a namespace is defined, no DTD or XSD is attached to this namespace.

This explains probably my problems...
Adding new dtd or xsd for autocompletion
by klbogotz on Fri, 20/08/2004 - 11:10
You need not do anything with jEdit to autocompletion without having installed xml plugin.
If you edit a valid xml file jEdit uses your dtd to offer all allowed tags at the place you are editing when you insert < and wait a moment.

Klaus
 
Thanks a lot for your answer
by dverdin on Fri, 20/08/2004 - 12:09
Thanks a lot for your answer !

Well, the question now is to know how do Jedit to find the dtd ?
Because for now, when I open an XML file, the information supplied in the first tag doesn't seem to be enough to let Jedit find the tags I can use in that namespace.

Example :
If I start a file with the following statement :

" xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">"

Jedit doesn't autocomplete what I type.

That's why I guessed I had something to do to let Jedit find the DTDs.

That's surprising, because for XML schemas or XSL, Jedit find the tags without any problems. As soon as I create a document including, for example :

"xmlns:xsd="http://www.w3.org/2001/XMLSchema""

Jedit can autocomplete the xsd tags.

Can you anyone explain this ?
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82347
Context Free Art (*.cfdg)   0.31   46054
JBuilder scheme   .001   18494
BBEdit scheme   1.0   18115
ColdFusion scheme   1.0   18023
R Edit Mode - extensive version   0.1   17472
Advanced HTML edit mode   1.0   16205
Matlab Edit Mode   1.0   16067
jEdit XP icons   1.0   15228
XP icons for jEdit   1.1   14292