DITA and XMetaL Discussion
Wim Hooghwinkel – iDTP May 30, 2012 at 10:19 am
Show element contents in Content Reference Dialog (XM 7)May 30, 2012 at 10:19 amParticipants 2Replies 3Last Activity 10 years, 4 months ago
How can I get the Content Reference Dialog display the contents of the elements instead of displaying the ID's? For top level elements the title can be displayed, but we use it for conreffing to software uicontrol elements – that use machine generated ID's. There are hundreds so we'd like to be able to find the correct uicontrol element without clicking all the ID's manually.
Wim HooghwinkelDerek Read May 30, 2012 at 4:48 pm
Reply to: Show element contents in Content Reference Dialog (XM 7)May 30, 2012 at 4:48 pm
If I understand correctly, you would like the list itself to show the “content” rather than the id value. By that do you mean the text it contains or all of the XML?
In either case, this is not currently possible. The system is designed to show id as that is the only thing consistent across all elements in DITA (some things contain text, some do not). It sounds like an interesting thing for us to look into for a future release. I'm not sure how it would work exactly, but perhaps you could submit a feature request to XMetaL Support detailing exactly how you feel it should function. Then if it is possible to do it we might consider this (as an additional feature) for a future release.
In the meantime, perhaps you might wish to try changing the @id values to something more easily recognized. That in itself would be extra work, so I could see not wanting to do this if there are a lot of them to change.Wim Hooghwinkel – iDTP June 12, 2012 at 5:51 pm
Reply to: Show element contents in Content Reference Dialog (XM 7)June 12, 2012 at 5:51 pm
yes, I'd like the list to show the “content” rather then the id value. Actually it surprises me (and it's a bit disappointing) that this isn't a standard feature. The contents of
can be shown, isn't that configurable? We don't want all elements to show. In this case it only concerns and elements.
WimDerek Read June 12, 2012 at 6:56 pm
Reply to: Show element contents in Content Reference Dialog (XM 7)June 12, 2012 at 6:56 pm
is displayed because we have specific code in place to do that, but it isn't configurable.
This might be possible to do as part of some services work if you need the feature right away.
I've logged a feature request that asks that we allow clients to configure this for arbitrary elements so they display in a similar way to what we do for
As you know,
can contain children (phrase-level elements). The text we show here is a concatenation of all text nodes in the including child elements and in most cases the extracted text will still be somewhat understandable.
I'm not sure how nicely that will work for other elements. It will possibly depend on the element and how you use it. The simplest case would be to do the same type of concatenation and hope that gives you enough context. I can't say that's how such a feature will end up being coded, but that's the request I've put in.
- You must be logged in to reply to this topic.