Pages: 1
Print
Author Topic: Use DITA audience dialogue for non dita XML topics  (Read 2629 times)
iweyers
Member

Posts: 9


« on: October 19, 2012, 02:27:06 AM »

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!
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: October 23, 2012, 04:24:53 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.
Logged
iweyers
Member

Posts: 9


« Reply #2 on: October 25, 2012, 03:18:17 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?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #3 on: October 26, 2012, 12:38:39 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.
Logged
Pages: 1
Print
Jump to: