How to use Tags On View
Tips on how to use the Tags On View
Content Editor allows several ways to view DITA document: WYSIWYG View, XML View, Tags On View.
- The WYSIWYG View shows only the content of a document in a way it will appear when printed or displayed as a finished product.
- The XML View shows source file in an XML tree.
- The Tags On View displays both the content and markup of your document. This view is useful for navigating the element hierarchy and positioning the insertion point.
Pretty Names In Tags
Text shown inside a tag can either be as-is from the XML or displayed with a user-friendly, "pretty" name. You can select display type by changing the prettyNames attribute in the tagTransform element. Pretty names are picked up from the configuration file when the name element is specified. The example below shows the default setting on the prettyNames attribute so the names will be read from the XML.
<x:tagTransform prettyNames="false"/>
Hiding Tags
You can specify which tags to exclude from the Tags On View by using the nodeConfig. Set the showTag element to false on the node to hide tags.
<x:nodeConfig>
<x:node match="class(topic/li)">
<x:showTag>false</x:showTag>
</x:node>
<x:node match="class('task/step')">
<x:showTag>true</x:showTag>
</x:node>
</x:nodeConfig>
Tags On View will not display the following HTML tags.
appletaudiobasefrontbuttoncanvascolgroupcommanddatalistframesetheadheaderhtmliframelinkmapmeteroptgroupoptionoutputprogressscriptselectstyletabletbodytextareatfoottheadtitletrvideo