Dynamic Text Variables for Elements and Attributes
You can use dynamic text variables to insert the value of an element or attribute from your content into a topic. For example, you could add the value of the edition
, author
or releaseinfo
elements from a Publication Topic into the topic. To learn more, see Supported
Elements, Supported Info Elements and Supported
Attributes.
To reference elements and attributes, you will need:
-
A basic understanding of XPath 1.0. XPath is required for navigating the elements in the XML output, see https://www.w3schools.com/xml/xpath_intro.asp.
-
Access to the XML file that contains all of your content, see Plan your References with the Debug XML File. You can use this file to plan your XPath references. Once you know which elements and attributes are needed, you can insert the appropriate references in your dynamic text variables.
-
To Insert a Dynamic Text Variable in your topics, and add the references using the appropriate syntax.