Home Forums DITA and XMetaL Discussion Update type attributes? Reply To: Update type attributes?


Reply to: Update type attributes?

I ran into a similar issue where XMetaL 6 will insert one of the OOTB topic types (concept/task/reference), even if the topicref is to a specialized topic type. From a pure DITA perspective, the @type attribute is optional, so I made a startup macro to disable @type attribute insertion altogether. I've attached my macro, in case it helps. Maybe it can be hacked to always insert the type attribute?

I think your issue might be because @type attributes, if unspecified, are inherited from the parent topicref? Given this map code:


I believe the inner topicref will get type=”task” added by DITA OT preprocessing, even though the inner topicref is to a concept: