Hi Diapdealer
Quote:
but it will still get a reader to the right file even if the target id doesn't exist.
|
;-)
Not all of the time. Think of starting with one big xhtml file with unique ids and then splitting it into many files. The one big file no longer exists and you end up having no idea of which of the smaller file to actually link to since the id does not actually exist!
So it looks like some sort of id/fragment check function needs to included right at the same point we do a well-formed check to make sure things are hunky-dory before splitting.
That should be doable as we already have routines to get all ids defined across the book (using multiple threads so it is done concurrently) so before splitting we could walk the urls with fragments and verify if an "id" exists in that particular file.
KevinH