XML validation issue with nested SYSTEM Entities

I'm having an issue with XML validation using IntelliJ IDEA 10.5.2 (#IU-107.587). I have an XML file that is constructed as follows (just the first few lines are shown):


<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE ONIXMessage SYSTEM "http://www.editeur.org/onix/2.0/reference/onix-international.dtd">



IntelliJ asks to fetch the DTD resource and does so without a problem. However, all tags in the XML file are marked as red. The topmost tag's error message is "Element ONIXMessage" must be declared and all other tags have the error message "Cannot resolve symbol 'Header' or whatever the tag name is.

Within the DTD there is an Entity tag with a SYSTEM resource declaration like so:

<!ENTITY % MainModule SYSTEM "onix-international.elt">

I don't believe that IntelliJ is fetching this resource and hence the problem. I've tried replacing it with the full url (http://www.editeur.org/onix/2.0/reference/onix-international.elt) but that doesn't work. I've also allowed IntelliJ to "Convert path to absolute", which it does properly, but still no changes in the XML file validation.

Can anyone help here?



Comment actions Permalink

Do you have 'elt' extension should be mapped to XML Document Definition file type?
Intellij IDEA seems to not picking SYSTEM file references when fetching external resources.
Please create YouTrack ticket with complete code sample to track the problem with red code.

Comment actions Permalink

If anyone else comes across this issue, I filed an issue in YouTrack here:



Please sign in to leave a comment.