Hello,
Thank you for this bug report and also for the corresponding patch.
We'll do our best to fix the problem in the next version of ditac.
Best regards,
---
PS: We unfortunately forgot to take into account your previous bug report
http://www.xmlmind.com/pipermail/ditac-support/2022-March/001000.html
in ditac v3.10.1 (April 14, 2022). Really sorry for this. We'll of
course see what we can do for this older issue.
On 5/2/22 11:37, Jirka Kosek wrote:
Hi,
I have found bug in ditac FO stylesheets. When bookmap contains
frontmatter like:
<frontmatter>
<topicref .../>
<booklists>
<toc/>
</booklists>
</frontmatter>
Then .ditac_lists file will look like:
<ditac:lists xmlns:ditac="http://www.xmlmind.com/ditac/schema/ditac"
xml:lang="en">
<ditac:chunkList>
<ditac:chunk file="out.pdf">
<ditac:titlePage/>
<ditac:topic id="CoverPage_" number="frontmattersection.1"
role="frontmattersection"
title="Engine Service Manual"/>
<ditac:toc/>
<ditac:topic id="I_wwdxpc_" number="section1.1" role="section1"
title="Engine"/>
...
Unfortunatelly for such input u:pageSequenceName() function will wrongly
calculate sequence name for all topics after ditac:toc element. They
will get "frontmaster" sequence name because there is no role on
ditac:toc element. Problem is in XPath expression in the
u:pageSequenceName() function -- when looking for change in sequence
name from previous element it looks only for elements with @role and it
skips immediately preceding element -- in this case ditac:toc.
I'm attaching patch.
Have a nice day,
Jirka
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support