daps
daps copied to clipboard
list-srcfiles sometimes returns wrong result when ROOTID is set
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>
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.