Skip to main content
18-Opal
September 2, 2020
Question

How to add or hide elements in a techinfo map

  • September 2, 2020
  • 1 reply
  • 1641 views

If I open a map, and click along the tree. I press enter and I get a list of elements that I can insert. What defines the list, is it the techinfo.xsd file? How do I add or hide elements? I am looking specifically at adding the appendix element. I have looked in the default stylesheet and it is an element that is listed in there.

 

Thanks

Bryon

 

 

1 reply

18-Opal
September 10, 2020

Hi Bryon--

Yes, the "quick tags" menu (showing what can be inserted at the current caret location by pressing Enter) is determined by the DTD/XSD. It won't let you insert anything that isn't valid according to the doctype.

If you want to add an element, you would do that via a DITA specialization. However, there's a bit of overhead involved in that, it's not as simple as just popping a new tag name into an element content model. The Help Center has information about DITA specialization if you search for that term.

An easier approach would be to use one of the already defined topics, with a specific label in the "outputclass" attribute. For example, you might use something like this:

<concept id="myAppendix" outputclass="appendix">
 <title>Appendix A: Additional Stuff</title>
 <conbody>
 <p>Some additional stuff follows...</p>
 ...
 </conbody>
</concept>

This would give you the ability to style it differently in the stylesheet, without the overhead of developing and maintaining a specialization.

 

--Clay

bfriesen18-OpalAuthor
18-Opal
September 15, 2020

Thanks Clay. That sounds like something to think about. I am disappointed that it is available in SMA but not in TIA. I thought if the element was already in the style sheet that I could see if it is available to be inserted into a ditamap.

 

Bryon