© Copyright Excosoft. Powered by Skribenta CCMS® and Topic Finder CDP®

Find and navigate

Filters


Add/remove/view favorites


Table of contents

File properties

Setting an element ID to make an element unique

Background

The procedure in this topic assumes Skribenta is installed and configured for normal operation, and:

You want to make a certain XML element, such as a section or table, uniquely identifiable in the content file. This, so you can address it specifically, for example, make a cross-reference link from a paragraph to a table.

It is possible to make an element uniquely identifiable in the content file or configuration file. An element ID is represented by a unique value for the id attribute on the element.

An element ID is unique since several elements in the same content file or configuration file cannot have the same element ID.

To make a link to another target element, the target element must have an element ID.

The first character in the element ID must be a letter or an underscore.

About this task

This instruction tells you how to make an XML element, such as a section or table, uniquely identifiable by setting an ID on the element.

Open the file, then set an ID on an element in your file content.

This is knowledge level

Less than 1 minute

Procedure

In the shown images, the XML tags are visible. To show XML tags, see Turning XML element tags on or off.

1. Make sure that the step(s) in section "Starting point" (see section "Background" above) are performed.

A pop-up list opens.

A toolbar opens.

The Id tab opens.

An element ID must only contain letters, digits, underscores, hyphens and periods.

The element ID is set on the element.

In the shown images, the XML tags are visible. To show XML tags, see Turning XML element tags on or off.

1. Make sure that the step(s) in section "Starting point" (see section "Background" above) are performed.

The element Attributes toolbar opens.

The Id tab opens.

An element ID must only contain letters, digits, underscores, hyphens and periods.

The element ID is set on the element.