DITA and XMetaL Discussion
iweyers October 19, 2012 at 8:27 am
Use DITA audience dialogue for non dita XML topicsOctober 19, 2012 at 8:27 amParticipants 2Replies 3Last Activity 9 years, 11 months ago
To create documentation for one of our customers, I am using a specialized DTD but I would like to use audiences to enable conditional publishing.
Because there are multiple audience possible for several elements, I would like to use the DITA conditional text dialogue for our authors to select the audience values. Does anyone know how to use the DITA specilized XMetaL dialogues for other types of topics?
Thanks for your help!Derek Read October 23, 2012 at 10:24 pm
Reply to: Use DITA audience dialogue for non dita XML topicsOctober 23, 2012 at 10:24 pm
The DITA authoring functionality will not function if you do not configure XMetaL Author Enterprise to treat your specialized DTD as DITA.
There is really only one step (click Tools > Select Specialized DITA DTD and choose your specialized DITA DTD), however, full instructions are in the Help under Working with DITA > DITA Specializations > Configure XMetaL.
If you have followed the instructions in Help then the Conditional Text feature should “just work”. If it does not please submit a copy of your files to XMetaL Support and they will try to figure out what in the DTD is causing the DITA authoring functionality to fail.iweyers October 25, 2012 at 9:18 am
Reply to: Use DITA audience dialogue for non dita XML topicsOctober 25, 2012 at 9:18 am
Thank you Derek. I am afraid that your solution will not work for me. I might have rephrase my situation. I do not have a specialized DITA DTD, but an independent DTD that is DITA-like. I am not able to use the select Specialized DITA DTD option. Is there another workaround?
I hoped there might be a file with the coding for that dialog box that I might be able to copy and use in my own files?Derek Read October 26, 2012 at 6:38 pm
Reply to: Use DITA audience dialogue for non dita XML topicsOctober 26, 2012 at 6:38 pm
The software does not support the arbitrary use of DTDs with our DITA functionalty. To use the DITA functionality as is (ie: the “just works” part of my last post) you must be using one of the official DITA DTDs (XMetaL includes 100% unmodified versions from OASIS) or a specialized DITA DTD.
However, in theory, the XFT (the dialog) might be reusable for other DTDs. It is coded in a fairly generic way but I can't say if that is generic enough for use with your DTD. We have discussed documenting how to reuse this XFT and associated code with non-DITA DTDs and some experimentation has been done but there is no official documentation on how to do that. What we may do in the future is to include something like this as a sample with XMetaL Developer if we don't provide a dedicated “non-DITA” version people could launch from any customization. If you are familiar with scripting you could study the code we implement for this DITA feature (it is all JScript) and then try to reuse it with the customization you have created for your own DTD (CSS, CTM and in particular in this instance your MCR file). A script debugger might be useful so you can step through the code and see what is going on.
- You must be logged in to reply to this topic.