dita4publishers / org.dita4publishers.html2

Extension to the base HTML transform type. Does numbering across the publication, back-of-the-box index, dynamic ToC
Apache License 2.0
3 stars 0 forks source link

keydef.xml not generated, transformation fails (OT 2.3.1) #7

Open bcolborn opened 8 years ago

bcolborn commented 8 years ago

Trying to run the html2 transformation on OT 2.3.1. It fails with this error:

[adjust-copy-to]  + [DEBUG] saving topicToCopyToMap to file "file:/C:/Users/ben/AppData/Local/Temp/temp20160713143418485/maps_administration/topicToCopyToMap.xml"...
[adjust-copy-to]  + [INFO] Copy-to Adjustments:
[adjust-copy-to]  + [INFO]   No adjustments made.
[adjust-copy-to]  + [INFO] makeJobFiles: Generating copyToChangesJob file: file:/C:/Users/ben/AppData/Local/Temp/temp20160713143418485/copyToChangesJob.xml
[adjust-copy-to]  + [INFO] makeJobFiles: Generating updatedJob file: file:/C:/Users/ben/AppData/Local/Temp/temp20160713143418485/updatedJob.xml
[adjust-copy-to]  + [INFO] updateKeydefXml: Generating updatedKeydef.xml file: file:/C:/Users/ben/AppData/Local/Temp/temp20160713143418485/updatedKeydefs.xml...
[adjust-copy-to]  + [INFO] Writing updated map document...
[adjust-copy-to]  + [INFO] Done.
Error: Warning: Could not find file C:\Users\ben\AppData\Local\Temp\temp20160713143418485\keydef.xml to copy.

The stock xhtml transtype completes without error.

raducoravu commented 8 years ago

If you want to know the official DITA OT policy on using the keydef.xml: https://github.com/dita-ot/dita-ot/issues/2389 Basically once the DITA 1.3 key scoping was introduced, you can no longer express in one XML file all this complexity so from what I remember there is a stage in the publishing engine which expands keyrefs and conkeyrefs to hrefs and conrefs in the temporary output folder. So the DITA For Publishers would need to be adjusted for this.