Better reporting of missing named templates in XSLT
Posted: Wed Jan 03, 2007 5:16 am
At the moment, if stylesheet A imports stylesheet B, which calls several named templates that exist in stylesheet A, then oxygen will report errors at each of the call-template instructions in B.
However, stylesheet A may be run without problems, because once it imports B, all of the call-template instructions in B become valid.
It would be great if Oxygen was able to avoid flagging these pseudo-errors in stylesheet B. I realise that by itself stylesheet B is correctly reported as erroneous. However, because it is valid in the context in which it is being used, all of these pseudo-errors make debugging and finding real errors that much harder.
I realise that this is non-trivial. One solution that I can think of may be to report errors within the context of the currently selected debugging config. That is, if the debugger is set up to run stylesheet A, then use that context to validate all of the stylesheets which A imports/includes.
The reason I have this dependency relationship is because of http://www.biglist.com/lists/xsl-list/a ... 01058.html
However, stylesheet A may be run without problems, because once it imports B, all of the call-template instructions in B become valid.
It would be great if Oxygen was able to avoid flagging these pseudo-errors in stylesheet B. I realise that by itself stylesheet B is correctly reported as erroneous. However, because it is valid in the context in which it is being used, all of these pseudo-errors make debugging and finding real errors that much harder.
I realise that this is non-trivial. One solution that I can think of may be to report errors within the context of the currently selected debugging config. That is, if the debugger is set up to run stylesheet A, then use that context to validate all of the stylesheets which A imports/includes.
The reason I have this dependency relationship is because of http://www.biglist.com/lists/xsl-list/a ... 01058.html