Page 1 of 1

insert.image action shown for glossBody?

Posted: Thu Aug 09, 2018 1:23 pm
by ckabstein
Hi,

If I understood the insert.image author action correctly, it should check whether an image may be inserted as a child element at the selected position.
The default XPath is

Code: Select all

oxy:allows-child-element("*", "class", " topic/image ")
However, for the glossBody element, the action shows in the Content Completion list, etc. What do I need to change in the author action that it doesn't appear?
The good thing that happens is that if I use that action and the wizard opens, on insertion of the image, automatically a glossSymbol element is inserted.

Christina

Re: insert.image action shown for glossBody?

Posted: Thu Aug 09, 2018 1:59 pm
by Radu
Hi Christina,

Actually the @class attribute value for a glossSymbol is - topic/image concept/image glossentry/glossSymbol so a glossSymbol is an extension of the DITA image, this is why the action still appears in the content completion list but when invoked it will indeed insert a glossSymbol.

Regards,
Radu

Re: insert.image action shown for glossBody?

Posted: Thu Aug 09, 2018 2:23 pm
by ckabstein
Hi Radu,

Now I understand why this is happening.

Thanks for explaining this to me.

Rgds,
Christina