New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DITA-OT 2.0: preprocessing step adds to many files to resourceonly.list #1798
Comments
I'm unable to reproduce this issue. @maer2712 could you create a Gist for a test set that reproduces the issue in your system? |
I tried a couple of times to create a test set but without success. When I remove unrelated files from my file set, the DITA-OT behaves correctly. And I haven't found out yet which of the 1200 unrelated topic files causes the error. I transformed docsrc/userguide-book.ditamap to PDF: resourceonly.list (in the tmp-directory) contains admin\FixesAndFeatures.xml and admin\HowToParticipate.xml. Technically, this isn't correct because these two files are normal topics. But they belong to the "Project Management" appendix, and that one is commented out. So this isn't a good example. |
Three days ago, I wrote that the CHM compiler complains about missing files and FOP doesn't. In reality, the PDF transform ignores the incorrect "resourceonly.list" file and processes all needed topic files. The CHM (htmlhelp) transform, however, respects the incorrect "resourceonly.list" file. It doesn't copy them to the "out" directory and from that point they are missing. When I remove the <excludesfiles .../> part in target "dita.inner.topics.html.common" (in file "plugins/org.dita.xhtml/build_general.xml") the necessary topic files get copied and aren't missing anymore. Maybe this could be a work-around, at least for the XHTML based transforms. |
Regardless of the workaround, I'd need to get a test set of some sort that can be reproduce this issue. In addition of the test set, please add information which properties you set when running DITA-OT. |
I have created a test set which should be visible here: https://gist.github.com/maer2712 Structure:
I start the transformation by using the "dita" command line tool.
In the command above, [path] might be anything one likes. One doesn't need HTML Help Workshop when testing. The relevant thing is the content of the output directory: in my tests, [outputdirectory]/test_content/dir_01/ contains only topic_02.html, while topic_01.html is missing. Both files should be there. In the project file "test_root.hhp" both topics are listed. In the keyword file "test_root.hhk", topic_01 is missing. In the TOC file "test_root.hhc" both topics are listed. The main difference between the two topic files is the link from topic_01 to topic_02. |
Fixtures for convenience. |
Ok, now I was able to reproduce this. It's caused by a combination where all direct references to topics are from a map that was in turn referenced by a To correct this, processing-roles should collected after conref, keyref, chunk, and metadata cascading processing, in the end of proprocess. |
It looks like this is the resolved in the latest |
Tested in 2.4.6 and this is working there too. So, I'm not sure when this was fixed, but the fix is already available. Marking closed. |
In DITA-OT 2.0, a preprocessing step adds files to resourceonly.list that aren't resource-only. In .job.xml these files have the attribute resource-only="true". These topics simply disappear in the output, without any warnings. The CHM compiler complains about missing files but FOP doesn't. I didn't have this problem in DITA-OT 1.8.
Update: DITA-OT 2.0.M3 and 2.0.M4 have this problem, too. In M1 and M2, I ran into other problems and couldn't continue.
Update: This seems to affect topic files that are not referenced by other topic files. When I add one of the missing topic files to the related-links element of an other topic file, the DITA-OT doesn't treat it any more as resource-only. The DITA-OT seems to assume that "isolated" topic files (only mentioned in a ditamap but not in other topic files) are resource-only.
The text was updated successfully, but these errors were encountered: