Hey everyone,
I started using Visual Studio for writing my XUL, because it gives me intellisense and validation, as I use a special XUL xml-schema.
There are still some problems with this approach, that I want to fix to make VS a more usable XUL-IDE.
VS doesn't know anything about the chrome-protocol and gives me an error ("The URI prefix is not recognized") at the following piece of xml-code:
<!DOCTYPE window SYSTEM "chrome://myApp/locale/main.dtd">
This is not VS's fault. As it doesn't know the protocol, it can't interpret the URI, it doesn't know where the main.dtd lies and thus doesn't know the entities that are declared in there, which will give some other validation errors at other places.
My goal is to extend the XML parser or VS or whatever, so that it can interpret the URI. This shouldn't be a hard task, as all that chrome does is map the URI to a filepath based on the information in the "chrome.manifest" file, so
chrome://myApp/locale/main.dtd
is actually something like
file:///c:/somefolder/myapp/locale/main.dtd
I only need to know, how I can tell VS / the XML parser about the URI prefix and how to interpret it, so that it links to the real file.
Does anyone have any suggestions?
Thanks a lot!