id
Document Internal Identifier
Unique internal identifier of an element; allows element to be cross-referenced (made into a link). Value must be unique across a document, not just for an element type.
Remarks
An identifier string is typically 1-32 characters in length and must start with a letter
of the alphabet. (It is an XML rule that identifiers may not start with a digit.)
ID/IDREF: The ID and IDREF
attribute values constitute a primitive reference mechanism for XML that allows internal linking. For example, when an @id attribute has been used on a <glyph-data> element, that identifier can be referenced by an IDREF-style attribute on a <glyph-ref> element, so that the full glyph data can be pointed to and need not be repeated every time the character is used.
External Identifiers: This attribute holds an internal document identifier that can be used by software to preform a simple
link. An @id should not be confused with elements such as
<contrib-id> and
<institution-id> that are used to hold externally defined identifiers
such as a DOI (for the article id), an ORCID personal identifier (for the contributor id), or a Ringgold identifier (for an institution id).
Historical Note: This attribute (@id) was significantly remodeled
from previous versions of this Tag Set. The current NISO JATS values are backwards compatible
with the last NLM version, but not with earlier versions. Specifically, in prior versions the <def-list>, <list>, <list-item>, and tex-math elements permitted this attribute to have any value (CDATA), not only valid XML ID values.
Used on Element: <target>
Value | Meaning |
---|---|
An XML identifier (ID) | A unique identifier for the element. XML parsers can verify that an element pointing to one of these is pointing to a valid ID. |
Restriction | @id is required; it must be provided if the element is used. |
Used on these Elements:
<abbrev>, <abstract>, <access-date>, <ack>, <addr-line>, <address>, <aff>, <aff-alternatives>, <ali:free_to_read>, <ali:license_ref>, <alt-text>, <alternatives>, <annotation>, <anonymous>, <app>, <app-group>, <article>, <article-meta>, <article-title>, <attrib>, <author-comment>, <award-group>, <award-id>, <back>, <bio>, <body>, <bold>, <boxed-text>, <break>, <caption>, <chapter-title>, <chem-struct>, <chem-struct-wrap>, <citation-alternatives>, <city>, <code>, <col>, <colgroup>, <collab>, <collab-alternatives>, <comment>, <compound-kwd>, <compound-kwd-part>, <conf-acronym>, <conf-date>, <conf-loc>, <conf-name>, <conf-num>, <conf-sponsor>, <conf-theme>, <conference>, <contrib>, <contrib-group>, <contrib-id>, <copyright-holder>, <copyright-statement>, <copyright-year>, <country>, <data-title>, <date>, <date-in-citation>, <day>, <def>, <def-head>, <def-item>, <def-list>, <degrees>, <disp-formula>, <disp-formula-group>, <disp-quote>, <edition>, <element-citation>, <elocation-id>, <email>, <era>, <etal>, <ext-link>, <fax>, <fig>, <fixed-case>, <fn>, <fn-group>, <fpage>, <front>, <funding-group>, <funding-source>, <funding-statement>, <given-names>, <glossary>, <glyph-data>, <glyph-ref>, <gov>, <graphic>, <hr>, <inline-formula>, <inline-graphic>, <inline-supplementary-material>, <institution>, <institution-id>, <institution-wrap>, <isbn>, <issn>, <issn-l>, <issue>, <issue-id>, <issue-part>, <issue-title>, <italic>, <journal-id>, <kwd>, <kwd-group>, <label>, <license>, <license-p>, <list>, <list-item>, <long-desc>, <lpage>, <media>, <mixed-citation>, <monospace>, <month>, <name>, <name-alternatives>, <named-content>, <nested-kwd>, <nlm-citation>, <object-id>, <on-behalf-of>, <open-access>, <overline>, <p>, <page-count>, <page-range>, <part-title>, <patent>, <permissions>, <person-group>, <phone>, <postal-code>, <prefix>, <preformat>, <price>, <principal-award-recipient>, <principal-investigator>, <private-char>, <product>, <pub-id>, <publisher-loc>, <publisher-name>, <rb>, <ref>, <ref-list>, <related-article>, <related-object>, <role>, <roman>, <rt>, <ruby>, <sans-serif>, <sc>, <season>, <sec>, <self-uri>, <series>, <size>, <source>, <speaker>, <speech>, <state>, <statement>, <std>, <std-organization>, <strike>, <string-name>, <styled-content>, <sub>, <subtitle>, <suffix>, <sup>, <supplement>, <supplementary-material>, <surname>, <table>, <table-wrap>, <table-wrap-foot>, <tbody>, <td>, <term>, <term-head>, <textual-form>, <tfoot>, <th>, <thead>, <time-stamp>, <title>, <title-group>, <tr>, <trans-source>, <trans-title>, <underline>, <uri>, <verse-group>, <verse-line>, <version>, <volume>, <volume-id>, <volume-series>, <xref>, <year>
Value | Meaning |
---|---|
An XML identifier (ID) | A unique identifier for the element. XML parsers can verify that an element pointing to one of these is pointing to a valid ID. |
Restriction | @id is an optional attribute; there is no default. |
Example 1
Footnote identifiers:
... <fn-group> <fn id="TF1-150"><p>Data not available for 1 trial.</p></fn> <fn id="TF1-151"><p>P<0.05 (random effects model).</p></fn> </fn-group> ...
Example 2
Identifier for a figure, showing a reference to the figure (from an <xref> element):
...
<p>Allocation of tags to individual molecules is outlined in
<xref ref-type="fig" rid="F2" alt="figure two">Fig. 2</xref>.
First, the complete repertoire of tags ...</p>
<fig id="F2">...</fig>
...