Home Forums XMetaL Tips and Tricks DITA: Troubleshooting Japanese and Simplified Chinese PDF output Reply To: DITA: Troubleshooting Japanese and Simplified Chinese PDF output

Derek Read

Reply to: DITA: Troubleshooting Japanese and Simplified Chinese PDF output

@rde: This raises the question: “should one recommend following specifications, or should one recommend doing what works?”

Underscore is not the recommended format by the W3C (see: http://www.w3.org/TR/xml/#sec-lang-tag). However, if it works in some tools then I suppose you have no choice unless you can implement a change to the code in the tool itself (I'm actually talking about the DITA Open Toolkit here as that's what really matters to you I think — ie: not oXygen but the fact that your version of oXygen is using a version of the DITA OT that supports, or prefers[?] underscore).

If underscore is working for a particular transtype (output format) then I would consider the version of the DITA OT that you are using to have an issue. Early versions of the DITA OT definitely had this issue. I remember that in some cases only values containing an underscore were supported, later on the DITA OT was altered to support both, presumably because people had been putting “wrong” xml:lang values in and it was nice to continue to support them.

If you find that this is still the case for some transtypes, I would recommend submitting details to the DITA OT project (after checking that the issue has not yet been addressed) https://github.com/dita-ot/dita-ot/issues?state=open

Reply

Products
Downloads
Support