.de d \" begin display .sp .in +4 .nf .. .de e \" end display .in -4 .fi .sp .. .TH man 1 "27 May 2004" .SH NAME addid \- add ID's to selected elements .SH SYNOPSIS .B addid .RB "[\| " \-x " \|]" .RB "[\-\-]" .IR elem|.class|elem.class .RB "[\| " html-file " \|]" .SH DESCRIPTION .LP The .B addid command opies an HTML or XML file to standard output, while adding element IDs to the specified elements or classes. .LP For example, given the input .d
A paragraph without an ID
.e the command .d addid p .e will output .dA paragraph without an ID
.e .LP If you specify a class using \fB.class\fP then IDs will only be added to elements that contain that class. And if you specify a element and a class using \fBelem.class\fP then IDs will only be added to the specified elements that contain the specified class. .LP If two elements would naturally generate the same ID, a number is added to the ID name (starting with 0) to make sure the IDs are unique. IDs are not added to matching elements that already contain an ID. .SH OPTIONS The following options are supported: .TP 10 .B \-x Use XML conventions: empty elements are written with a slash at the end: