Restricting element/attribute completion in XML


I want to restrict the completion suggestions coming from the built-in XSD
support.
In some locations the schema is very general. With some inside knowlegde
I want to restrict the completion proposals.

It this possible somehow?

-tt


3 comments

I want to restrict the completion suggestions coming from the built-in
XSD support.
In some locations the schema is very general. With some inside knowlegde
I want to restrict the completion proposals.

It this possible somehow?

-tt


Which exactly places?

0

Which exactly places?


Let's assume there is some "root" schema used for a document.
In some specific places this root schema uses <xsd:any> or <xsd:anyAttribute>.

At such places IDEA suggests all top-level elements from all currently referenced
schemas.
This is corrent and good, IDEA is doing the right thing.

Now, assume that my plugin has a more intimate knowlegde of the root schema.
It knows what kind of elements from other schemas are allowed at such <xsd:any>
locations.
For example, perhaps for some <xsd:any> location in root schema it only makes
sense to suggest elements from XHTML schema.

So it's about <xsd:any> and <xsd:anyAttribute> only.

-tt


0

Let's assume there is some "root" schema used for a document.
In some specific places this root schema uses <xsd:any> or
<xsd:anyAttribute>.

At such places IDEA suggests all top-level elements from all currently
referenced schemas.
This is corrent and good, IDEA is doing the right thing.

Now, assume that my plugin has a more intimate knowlegde of the root
schema. It knows what kind of elements from other schemas are allowed at
such <xsd:any> locations.
For example, perhaps for some <xsd:any> location in root schema it only
makes sense to suggest elements from XHTML schema.

So it's about <xsd:any> and <xsd:anyAttribute> only.


Seems that right now it's impossible to plug there. A bit later?

0

Please sign in to leave a comment.