Skip to content
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.1.0 TopicMerge fails when using DITA 1.3 schemas #1994

Closed
ToshihikoMakita opened this issue Aug 7, 2015 · 1 comment
Closed

DITA-OT 2.1.0 TopicMerge fails when using DITA 1.3 schemas #1994

ToshihikoMakita opened this issue Aug 7, 2015 · 1 comment
Labels
bug DITA 1.3 Related to specification feature added in DITA 1.3 invalid This doesn't seem right plugin/pdf Issue related to PDF plug-in

Comments

@ToshihikoMakita
Copy link
Contributor

TopicMerge fails with following message when using DITA 1.3 schema in DITA-OT 2.1.0.

[PDF2]

preprocess:

map2pdf2:
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\diff_20150807.ditamap
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_first_chapter.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_before_driving.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\t_floor_mat.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_floor_mat_warning.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_for_safety_drive.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_correct_driving_posture.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_correct_use_of_the_seat_belts_in_safty.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_seat_belts.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_correct_use_of_the_seat_belts.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_second_chapter.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_warning_lights_and_indicators.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_third_chapter.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_keys.dita
[topic-merge] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_the_keys.dita
[topic-merge] null
[topic-merge] Error on line 108 column 276 
[topic-merge]   SXXP0003: Error reported by XML parser: Attribute name "fi" associated with an element
[topic-merge]   type "topicref" must be followed by the ' = ' character.

[PDF5]

preprocess:

map2pdf5:
     [echo] Start generating merged middle file.
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\diff_20150807.ditamap
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_first_chapter.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_before_driving.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\t_floor_mat.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_floor_mat_warning.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_for_safety_drive.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_correct_driving_posture.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_correct_use_of_the_seat_belts_in_safty.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_seat_belts.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_correct_use_of_the_seat_belts.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_second_chapter.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_warning_lights_and_indicators.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_third_chapter.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_keys.dita
 [pipeline] Processing D:\My_Documents\XML2015\Jobs\20150807_ditaot_diff\temp\pdf\topic\c_the_keys.dita
 [pipeline] null

Probably NPE occurs in TopicMerge processing.

Steps to reproduce:

  1. Install DITA-OT 2.1.0 from 2.1...develop
  2. Move plugins/org.oasis-open.dita.v1_2 to backup directory.
  3. Install DITA 1.3 schema from https://github.com/dita-community/org.oasis-open.dita.dita13.doctypes/tree/develop
  4. Modify the catalog file. https://lists.oasis-open.org/archives/dita-comment/201507/msg00001.html
  5. Run PDF2 or PDF5 (https://github.com/AntennaHouse/pdf5) from oXygen

All of the data files and error log file can be downloaded from following URL:

https://www.dropbox.com/s/uc7yrvozsex65vs/20150807_ditaot_diff.zip?dl=0

Regards,

Toshihiko Makita

@robander robander added bug plugin/pdf Issue related to PDF plug-in needs reproduction Issue needs to be reproduced in latest release labels May 6, 2016
@robander robander added the DITA 1.3 Related to specification feature added in DITA 1.3 label May 26, 2016
@robander
Copy link
Member

I've downloaded the sample zip and built with the upcoming 2.3 code.

The NPE no longer occurs with the DITA 1.3 document types that ship natively with DITA-OT 2.2 and 2.3.

The grammar file copies at dita-community were not the official copies; I suspect either they were out of date or otherwise out of sync with the OASIS versions. There is no error from the topic merge process, and the PDF is produced using the PDF2 transform type.

@jelovirt jelovirt added invalid This doesn't seem right and removed needs reproduction Issue needs to be reproduced in latest release labels May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug DITA 1.3 Related to specification feature added in DITA 1.3 invalid This doesn't seem right plugin/pdf Issue related to PDF plug-in
Projects
None yet
Development

No branches or pull requests

3 participants