What replaces plugin.dtd?

I'm thoroughly confused by this exchange:

http://youtrack.jetbrains.net/issue/IDEA-60073

If there is no longer a DTD, how does one know what elements are valid in a plugin.xml file?

I don't understand the reference to "DevKit." I have (today) checked out the current community snapshot here:

git://git.jetbrains.org/idea/community.git

I have found the "devKit" module here:

git/community/plugins/devkit/


Most, if not all, of the classes in the org.jetbrains.idea.devkit.dom package all make reference (at least in the comments) to the plugin.dtd file.

But there is NO plugin.dtd file at all in any directory of this devKit module.

There *is* however plugin.dtd in a different location:

git/community/xml/impl/resources/standardSchemas/plugin.dtd


This DTD also does **not** contain "use-shortcut-of" as an attributre of <action>.

So, if this also is not a valid plugin.dtd, and there is NO plugin.dtd in "devKit", WHERE do I learn what elements and attributes are valild for a plugin.xml file?

Rob

2 comments

AFAIK the plugin.dtd is obsolete since  1) it is not versioned 2) it does not support "dynamic" elements  You can simply rely on the error highlighting provided by DevKit-plugin, which also provides much more intelligent autocompletion than any DTD or XSD could provide.

0

Hello Rob,

The DevKit validation and autocompletion is a replacement for plugin.dtd;
the comments reference it because it was the original source of information.
The documents http://confluence.jetbrains.net/display/IDEADEV/IntelliJIDEAAction+System
and http://confluence.jetbrains.net/display/IDEADEV/IntelliJIDEAPlugin+Structure
describe the elements and attribites that you can use.

I'm thoroughly confused by this exchange:

http://youtrack.jetbrains.net/issue/IDEA-60073

If there is no longer a DTD, how does one know what elements are valid
in a plugin.xml file?

I don't understand the reference to "DevKit." I have (today) checked
out the current community snapshot here:

git://git.jetbrains.org/idea/community.git

I have found the "devKit" module here:

Most, if not all, of the classes in the org.jetbrains.idea.devkit.dom
package all make reference (at least in the comments) to the
plugin.dtd file.

But there is NO plugin.dtd file at all in any directory of this devKit
module.

There is however plugin.dtd in a different location:

This DTD also does *not* contain "use-shortcut-of" as an attributre
of <action>.

So, if this also is not a valid plugin.dtd, and there is NO plugin.dtd
in "devKit", WHERE do I learn what elements and attributes are valild
for a plugin.xml file?

Rob

---
Original message URL:
http://devnet.jetbrains.net/message/5275516#5275516


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.