Kevin Flynn wrote: > Hussein Shafie wrote: >> Kevin Flynn wrote: >>> >>> I seem to have a problem with including variables using the insert >>> reference function. The validator reports duplicate IDs, even though >>> I have selected the option to filter these errors. Maybe I have >>> misunderstood how it's supposed to work? I attach a document plus a >>> referenced "variable" document. >>> >> >> Your document is invalid. It contains: >> >> <itemizedlist> >> <listitem template="listitem"></listitem> >> </itemizedlist> >> >> (A listitem cannot be empty.) >> >> Please make it valid and you'll see that the "Do not report duplicate >> IDs" option will work as expected. > Thank you very much indeed. Isn't this a bug though? Shouldn't XXE > report the real error instead of (or at least as well as) spurious > consequent errors? > > Kevin Flynn > Actually, removing the invalid list didn't solve the problem, but you may be interested in the true cause in case a similar problem is reported. Because I have been moving files around, I ended up with two copies of my variables file, and my document contained references to different copies of the same variable:
<xi:include href="../../variables.ebk" xpointer="iv-company" /> and <xi:include href="variables.ebk" xpointer="iv-company" /> Once i fixed this, the problem disappeared. Regards, Kevin Flynn

