Home Forums DITA and XMetaL Discussion OnInsert scripting when wrapping a selection Reply To: OnInsert scripting when wrapping a selection

Derek Read

Reply to: OnInsert scripting when wrapping a selection

Strictly speaking, making this type of mod to the DITA functionality is not supported (so you'll have to support your clients that are using this on your own). The approach I would take here is to insert a debugger statement into your code and then step through it. Hopefully you have Visual Studio or similar. If not you can try using Windows Script Debugger.

I suspect that your code is attempting to do something that the DITA authoring code already does. If you step through your code you will likely see that eventually the debugger jumps out of your file into one of our scripts. At that point I'm not sure what your strategy should be. I don't recommend changing the code we ship but perhaps it will help you understand what is happening so you can modify yours.

Another option would be to write up a feature request and submit it to XMetaL Support. This just needs to describe your goals (not design the feature) in the broadest possible terms. You might think the script is self explanatory, but there must be some background to this. The basic question to answer is “who is this for” (the type of user) and “why”. If it makes sense for the general population to have a feature that helps you (not necessarily the feature you think you want) then it would be considered for a future release.

Reply

Products
Downloads
Support