Resolving <xi:include>

Every time I have an <xi:include href="/some/file.xml"/>, IntelliJ complains that it can't resolve /some/file.xml. I am wondering:

  • What triggers IntelliJ to try to resolve this file? I changed the XInclude schema so the href would be defined as a string instead of string, but IntelliJ still tries to resolve it.
  • From where does IntelliJ try to resolve the file? Relative URIs (file.xml or ../other/file.xml) work, but even absolute paths such as /Users/avernet/... don't work. How can I tell IntelliJ from where it should try resolving those paths?


Alex

2 comments
Comment actions Permalink

1) Currently there is no way to turn off the checking. Feel free to file a
request for this.
2) IDEA resolves absolute paths relatively to the source root(s).


0
Comment actions Permalink

Dmitry,

1) I guess I won't need to disable it, if I can get this to work properly.
2) Cool! Even if the "root directory" from the perspective of resolving XInclude doesn't contain Java source, I can set that directly to be a source directory and IntelliJ is now able to resolve those href.

Excellent. Thank you!

Alex

0

Please sign in to leave a comment.