Page 1 of 1

Dita 2.x - profiling attributes

Posted: Thu Oct 22, 2015 3:25 pm
by Tristan
Hi,

I tried out the newly released Oxygen 17.1.
When making use of the new built-in DITA-OT 2.x a webhelp build fails when dita files contain profiling attributes.

More specifically during [move-meta] phase the following issue occurs:

Code: Select all

[topic-fragment] Error on line 205 column 1060 of topic.dita:

Code: Select all

[move-meta]   SXXP0003: Error reported by XML parser: Attribute "ditaarch" bound to namespace
[move-meta] "http://www.w3.org/2000/xmlns/" was already specified for element "topic".
Backtracking the problem it seems like ditaarch is added twice to dita files in the temp folder (oxygen_dita_temp) which have a profile attribute:

Code: Select all

  <topic xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"...
Is there a workaround for this, or a known issue?
Thanks,

Tristan

Re: Dita 2.x - profiling attributes

Posted: Thu Oct 22, 2015 3:44 pm
by Radu
Hi Tristan,

I don't seem to reproduce the error on my side.
You are publishing from Oxygen and not from the command line, right?

Did you use Relax NG-based specific DITA 1.3 maps and topics?
Or did you use DITA maps and topics with the default DTD declaration (which should resolve to the DITA 1.3 DTDs when you switch to using DITA OT 2.x)?
Both of these should work as well.

Could you possibly create a sample DITA project to reproduce the issue and send it to us? support@oxygenxml.com

Regards,
Radu

Re: Dita 2.x - profiling attributes

Posted: Thu Oct 22, 2015 7:23 pm
by Tristan
Thanks for the quick follow-up,

Yes, Publishing occurs from Oxygen.

I was able to recreate the issue, and send a sample project to the support mail.
One condition I overlooked so far is that it only occurs when a ditaval is selected as filter in the ditamaps manager and applied during transformation.

When no profiling setting is applied in the dita maps manager all goes well.

Looking forward to your feedback,

Tristan

Re: Dita 2.x - profiling attributes

Posted: Fri Oct 23, 2015 10:23 am
by Radu
Hi Tristan,

Thanks a lot for the samples.
I managed to reproduce the issue with them and added a DITA OT issue:

https://github.com/dita-ot/dita-ot/issues/2109

It seems that the problem is related to the fact that you have nested topics + the presence of the DITAVAL. If I find some more details about it I will comment on the GitHub opened issue.

Regards,
Radu

Re: Dita 2.x - profiling attributes

Posted: Fri Oct 23, 2015 10:31 am
by Tristan
Ok thanks,

I'll follow-up on the github page.
If there would be a workaround in attendance of a bugfix, that would be great.
Meanwhile I'll see if I can find a workaround myself.

Best regards,

Tristan

Re: Dita 2.x - profiling attributes

Posted: Fri Oct 23, 2015 10:59 am
by Radu
Hi Tristan,

I think that you could avoid having multiple subtopics and prefer instead to define each topic in its own file and to create the topics hierarchy in the DITA Map.

Regards,
Radu

Re: Dita 2.x - profiling attributes

Posted: Fri Oct 23, 2015 1:02 pm
by Tristan
Thanks for the feedback and suggestion.

I'm not really keen on reworking the structure for a bug in the toolkit.
This could be a workaround for a small dita project, but not for one with hundreds of dita files already, many of them containing nested topics.

I know there are heated debates on chunking or nesting topics, but fact of the matter is that both are supported by the standard and depending on the use case, either chunking in the ditamap or nesting in the dita file can be a preferred solution.

Re: Dita 2.x - profiling attributes

Posted: Tue Nov 03, 2015 3:26 pm
by ionela
Hello,

Just to update the thread, this problem has been resolved in the latest maintenance build of Oxygen 17.1, 2015102718 (released on October 29th):
DITA publishing: Fixed publishing with DITA-OT 2.x when using inner topics and DITAVAL filters.
You can download it from our web site:
http://www.oxygenxml.com/download.html

The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2015102718

You can follow the release/build RSS feed here:
http://www.oxygenxml.com/rssBuildID.xml

Let us know if you encounter further problems with this new build.

Regards,
Ionela