I have an issue with the DTD I generated (from IntelliJ) for all my xml files that store sql queries for my project.
I the top of each xml file now looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE statements SYSTEM "sql.dtd">
However IntelliJ marks the "sql.dtd" in red and displays message "URI is not registered (Settings | IDE Settings | Resources)".
I did register the URI to point to the local file system path to the sql.dtd which is in the WEB-INF folder of my project and it's still marked as red.
Why is that? Every where I look everybody seems to just use file name and it works for them.
I also tried to locate the sql.dtd file in the same package as all the xml files that point to it but there's still same issue.