DOM-Model with different root-tag names

Hi,

I'm stuck here trying to allow different root-tag names on DomModel. The DTD/model is exactly the same except for the DTD-URI/ID which is mapped in com.intellij.util.xml.DomFileDescription#registerNamespacePolicy for my NamespaceKey.

I override com.intellij.util.xml.DomFileDescription#acceptsOtherRootTagNames returning true and com.intellij.util.xml.DomFileDescription#isMyFile returns true as expected - but I get no completion to work and also my DomInspection only triggers on invalid attribute names, but not on invalid values restricted by my DomModel.

Any further steps required?

Thanks,

Yann

2 comments

Hi,

I'm stuck here trying to allow different root-tag names on DomModel. The DTD/model is exactly the same except for the DTD-URI/ID which is mapped in com.intellij.util.xml.DomFileDescription#registerNamespacePolicy for my NamespaceKey.

I override com.intellij.util.xml.DomFileDescription#acceptsOtherRootTagNames returning true and com.intellij.util.xml.DomFileDescription#isMyFile returns true as expected - but I get no completion to work and also my DomInspection only triggers on invalid attribute names, but not on invalid values restricted by my DomModel.

Any further steps required?

Thanks,

Yann


A bug, certainly. Please try the upcoming EAP

0

it seems this was fixed silently in 7.0.2 final (or somewhen shortly before)

0

Please sign in to leave a comment.