Configure a trigger to automatically assign elements IDs
In the xpathforids.xml configuration file, you can trigger automatic assignment of an ID to specified elements of a map or topic during its release.
When a user releases a map or topic, the IXIA CCMS determines whether the elements configured in the xpathforids.xml file have an ID. If an ID is already assigned, it is kept as is. Otherwise, the CCMS generates a unique ID and assigns it to the element, based on the configuration.
Important: Make configuration changes in a test
environment and confirm they work before copying them to a production
environment.
For example, the following code specifies that IDs will be generated
for sections, figures, and tables when a user releases a topic and for topic groups
when a user releases a
map:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xpaths PUBLIC "-//ixiasoft.com//cms//config//idsxpath" "xpathforids.dtd">
<!-- Defines the list of Xpath for elements that must have an ID -->
<xpaths>
<xpath value="//*[contains(@class, ' topic/section ')]"/>
<xpath value="//*[contains(@class, ' topic/fig ')]"/>
<xpath value="//*[contains(@class, ' topic/table ')]"/>
<xpath value="//*[contains(@class, ' map/topicgroup ')]"/>
</xpaths>
To configure a trigger to automatically assign elements IDs: