XML. Schema annotations for XML documents used as documentation (Ctrl+Q).

How does one make the above feature work?

Forgive me for being thick but just can find a way to get it working
What do I have to do ?
:(

Appreciate your help


Kind regards,
Parthi

5 comments

Hi,

To demonstrate the feature:
Create web project v 2.4, open web.xml, press Control + Q on web-app tag.
Outcome: popup containting documentation from xml schema.
How it works: navigate to definition of web-app tag (Control+B), you
will see
<xsd:annotation><xsd:documenation>XXX</xsd:documentation></<xsd:annotation>
inside the web-app declaration element. IDEA just picks up this one for
you.

The feature works with the DTDs as well. You can create 2.3 web.xml and
do the similar steps there. IDEA uses comments before the declaration of
the tag.

parthi wrote:

How does one make the above feature work?

Forgive me for being thick but just can find a way to get it working
What do I have to do ?
:(

Appreciate your help


Kind regards,
Parthi

0

i don't have a web project,
the xsd has those doc tags able to navigate and do all that but ctrl+q does not bring up the documentation for that element :(

0

Hi,

The doc action slightly depends on where you invoke it (tag name should
suffice) and heavily on where the documentation tags present in the
schema. The must prerequisite is that your tag is correctly resolved to
the schema (e.g. navigate Control + B goes properly and no error
highlighting).

After all, it might be a bug, please, post sample the xml fragment /
schema and where you pressed the control + Q.

parthi wrote:

i don't have a web project,
the xsd has those doc tags able to navigate and do all that but ctrl+q does not bring up the documentation for that element :(

0

ctrlb works fine no error in the doc is able to resolve and notify about in correct values etc but ctrlq does nothing
can send the xsd as well as the xml with a (.dat) extension to you, mail id please

Cheers,
Parthi

0

maxim (.) mossienko (at) jetbrains (dot) com

parthi wrote:

ctrlb works fine no error in the doc is able to resolve and notify about in correct values etc but ctrlq does nothing
can send the xsd as well as the xml with a (.dat) extension to you, mail id please

Cheers,
Parthi

0

Please sign in to leave a comment.