daps icon indicating copy to clipboard operation
daps copied to clipboard

list-srcfiles sometimes returns wrong result when ROOTID is set

Open fsundermeyer opened this issue 10 years ago • 1 comments

When ROOTID points to an ID that does not have an xinclude associated:

book.xml:

....
<part xml:id="foo">
  <xi:include href="1.xml">
  <xi:include href="2.xml">
</part>
...

list-srcfiles returns all files in book.xml. This error does not occur whit a structure like this:

book.xml:

....
<xi:include hrtef="part.xml>
...

part.xml:

<part xml:id="foo">
  <xi:include href="1.xml">
  <xi:include href="2.xml">
</part>

fsundermeyer avatar Sep 15 '15 10:09 fsundermeyer

In commit 32d9269 (feature/filelist-rework branch) you can find its first implementation.

The parameter with.mainfile (default 1) prints the MAIN file; can be suppressed by setting it to 0.

tomschr avatar Sep 15 '15 11:09 tomschr