How To Use (Read Me First)

Tag Libraries provide interactive documentation for a Tag Set that you can access through Web browsers. Separate Tag Libraries have been set up for this BITS Book Tag Set as well as for each of the NISO JATS Journal Tag Sets (Journal Archiving, Journal Publishing, and Article Authoring). Each Tag Library provides specific information, such as:

You can use the Tag Library as a reference to look up XML tags and how to use them; to browse around and familiarize yourself with this Tag Set; to see examples of correct or recommended usage; and even to find guidance for how to implement software to handle documents that are marked up using this Tag Set.

At the top level of each Tag Set’s Tag Library there are several main sections:

Moving Around in the Tag Library

As with most Web documents, you can click on links to travel from one topic to another and use your browser’s “Back” button to backtrack through previously-visited pages. On most pages there is a Navigation Bar on the left, as shown below. This provides links to each main section. In addition, next to each main section’s title there is a small right-pointing triangle (). Clicking on it will show the list of sub-topics within each main section, and you can then click on a sub-topic to go to the corresponding discussion. To collapse the expanded list, click on the down-pointing triangle ().

For example, clicking on the triangle to the left of the word “Elements” will show a list of all the XML element types such as <p> and <table> that are defined in this Tag Set. Because there are many element types, you will likely have to scroll down to find a particular one (using the scroll-bar on the Navigation Bar, not the main scroll-bar for the entire browser window).()

In all these sections except the Document Hierarchy Diagrams, when the text mentions specific element types, attributes, or parameter entities, the name is linked to the page that describes that item. This makes it easy to access related information.

The Element Page

These pages start out with the XML name of the element they describe, followed by a more English-like, descriptive name and a definition. Many elements also have remarks that give further details, a discussion of best practice, notes that may be helpful to users that need to convert data into this Tag Set from other sources, and cross-references.

There is also a description of exactly what elements are allowed within the element and in what combinations. This information is provided in three forms:

For many elements, the “Document Hierarchy Diagrams” provides a fourth descriptive form. This form is described below.

Most element pages include specific examples that show how the element can be used, including any relevant context. These examples have all been tested and validated; however, portions are often left out or replaced by “...” to keep examples manageable. In addition, the most relevant parts of examples are highlighted so they are easy to find.

The Attribute Page

Attribute pages are organized very much like element pages. However, because an attribute cannot have sub-elements, the description instead tells which elements can use the attribute, what kind of attribute it is, and what the permitted and default values are (the default value is used when the attribute is not specified at all on a particular instance of an element).

Some common kinds of attributes are:

An XML identifier (ID)

This kind of attribute must have a value that is an XML NAME, which can consist of XML name characters (alphabetical characters, digits, period, underscore, and hyphen), and cannot start with a digit. Every ID attribute value in a single document must be unique and provides a way to link or refer to its element (for example, using the <xref> element). ID attributes are generally named @id.

An identifier (IDREF)

This kind of attribute must have a value that is the same as some ID value in the same document. IDREFs appear on elements that refer to other elements such as <xref>. IDREF attributes are generally named @rid. Some @rid attributes are of type IDREFS, which is simply a space-separated list of IDREF values.

Text, numbers, or special characters (CDATA)

These attributes can take any string value at all. If the attribute value is surrounded by single quotes, then single quotes cannot appear inside; if the attribute value is surrounded by double quotes, then double quotes cannot appear inside. In either case, the prohibited character can instead be represented by an XML character reference such as “&apos;”. XML elements cannot be placed within attribute values.

“xxx-type” attributes

There are many attributes whose names end in “-type”. They are generally CDATA attributes as described above. They are typically assigned tokens as values, containing no spaces. Typically if there are spaces in the value, they separate multiple independent tokens, all of which apply. For example, some element might be both of type “important” and “normative”, and be given type “important normative”. In many cases, the Tag Library gives suggested values for such attributes. Unless specifically stated otherwise, those values are not the only values permitted.

Finally, there may be a “Restrictions” section that specifies if the attribute must always be specified or is optional.

For more details see the Introduction to Attributes section.

The Document Hierarchy Diagrams

These diagrams illustrate portions of the hierarchical (nested) structure of this Tag Set. Each diagram has one element “root” and may illustrate the structures of several additional elements. For each element illustrated, its name appears in boxes on the left, with lines to boxes for each of its possible child-elements, which are in a column on the right.

Boxes for child elements can have names and/or symbols within. If the box has merely “...”, it means that the actual content has been omitted, to save space or improve clarity. If it has merely an icon of a page with lines, it stands for text content rather than an actual element.

If a box has an element name, then symbols at the left end of a box indicate whether that element is required and/or repeatable. These symbols are called “occurrence indicators”:

?

means that the item is optional

*

means that the item may occur any number of times (zero or more)

+

means that the item must occur at least once, but may occur any number of times

a thick vertical bar on the left of the box

means that the item is the “document element”: the top-most element, such as <book> or <book-part-wrapper> and is therefore required

(no symbol)

means that the item must occur exactly once

The symbols at the right end of a box have these meanings:

˜

means that the item may have attributes

(a thick vertical bar on the right of the box)

means that the item is expanded elsewhere (For example, if an element is permitted in multiple places within a certain parent element, there is little point in repeating its information many times.)

The lines that connect a box to boxes on its left may either be squared-off or direct (angled) lines. The former indicates that the boxes to the right must occur in the order shown; the latter indicates that any order is permitted.

For more details and examples see the Document Hierarchy Diagrams section.

How to point to a specific Tag Library pages

This tag library allows direct access by tag name to the element, attribute, and parameter entity pages. To link to one of these pages, construct a URL with the following content, concatenated without spaces or separators:

For example, to directly address the <award-group> element in the BITS Tag Library, assemble:

That would make the complete link: https://jats.nlm.nih.gov/extensions/bits/tag-library/1.0/index.html?elem=award-group.

Similarly, to link to the index-type attribute:

The complete link would be: https://jats.nlm.nih.gov/extensions/bits/tag-library/1.0/index.html?attr=index-type

To link to the book-part-meta-model parameter entity:

The complete link would be: https://jats.nlm.nih.gov/extensions/bits/tag-library/1.0/index.html?pe=book-part-meta-model.