Generate ID for an Element
Most elements in Paligo XML have an xml:id
attribute, which Paligo uses it to identify each piece of content. The id is especially important for content reuse and cross-references, and is also essential for some other types of content such as checklists. For example, if you reuse a
paragraph in two topics, that paragraph has the same xml:id
in both topics.
Paligo generates xml:id
s for some elements automatically. But in some circumstances, you may need to generate an xml:id
manually, for example, if using a checklist or adding a cross-reference to an element that does not already have an xml:id
.
To generate a unique xml:id
for an element:
-
Edit the topic that contains the element that needs an
xml:id
. -
Select the element in the content of the topic. For example, if you want to give a
procedure
anxml:id
, select theprocedur
e element in the content of your topic. -
In the element structure menu, select the element to display a menu for that element.
-
Select Generate ID.
Paligo generates an
xml:id
for the element. You can see it in the Element attributes panel. -
Select Save.
Note
We recommend that you use the Generate ID option for xml:ids, as this means Paligo will create a unique ID for you. Creating your own custom ids is a bad idea, as this introduces the possibility of the same ids being used for different content. Paligo-generated ids are always unique.