DocLang Schematron Validation Rules (XSLT 3.0)
List must have ldiv as first element after optional element head (property elements: label, thread, xref, href, layer, location, caption, description, summary, custom).
Found:
Track must have bdiv (optionally preceded by a single cover) as first element after the optional element head (property elements: label, thread, xref, href, layer, location, caption, description, summary, custom).
Found:
Track must not contain non-whitespace text before its first cue block (bdiv).
Found: ''
Table and index must have cell-starting token as first element after optional element head (property elements: label, thread, xref, href, layer, location, caption, description, summary, custom).
Found:
Table and index must follow the rectangular rule: all rows must have the same number of cells.
First row has cells, but at least one other row has a different count.
Each row should have the same count of cell-starting tokens (fcel, ecel, ched, rhed, corn, srow, lcel, ucel, xcel) before each nl element.
Property elements in the element head (label, thread, xref, href, layer, location, caption, description, summary, custom) must appear before any non-whitespace text content.
Found non-whitespace text before element head: ''
Element head must not contain both xref and href elements; they are mutually exclusive.
Element xref references thread_id="" but no thread element defines that id.
Location value must satisfy 0 <= value < axis_limit.
Found value=, axis_limit=,
axis=,
location-index=.
Location block must satisfy x0_norm <= x1_norm and y0_norm <= y1_norm,
where *_norm is each coordinate normalized by its effective resolution.
Found:
x0=, x0_res=, x0_norm=,
x1=, x1_res=, x1_norm=,
y0=, y0_res=, y0_norm=,
y1=, y1_res=, y1_norm=.
All thread elements with the same thread_id must use the same host element type
(e.g. all text, not text and picture). Check thread_id values for mixed types.
In list items (virtual text), property elements in the element head (label, thread, xref, href, layer, location, caption, description, summary, custom) must appear before any non-whitespace text content.
Found non-whitespace text before element head: ''
In table and index cells (virtual text), property elements in the element head (label, thread, xref, href, layer, location, caption, description, summary, custom) must appear before any non-whitespace text content.
Found non-whitespace text before element head: ''
field_heading and field_item must be descendants of field_region.
field_heading and field_item must be descendants of field_region.
key and value must be descendants of field_item.
key and value must be descendants of field_item.
A field_item may contain at most one own descendant key.
Keys that belong to nested field_item descendants are excluded from this count.
Found own-key-count=.
Element tabular is only allowed in picture with class="chart".
Element src must be the first element of the picture body when present.
Element tabular must immediately follow src when src is present, otherwise it may be the first body element.
A track cue block must begin with a start timestamp: its first element must be hours, minutes or seconds.
Found:
A track cue block must not contain non-whitespace text before its start timestamp.
Found: ''
A track cue block end timestamp must not be earlier than its start timestamp.
Found start=ms, end=ms.
Track cue blocks must appear in non-decreasing order of start time.
Found this cue block start=ms, previous cue block start=ms.
Each chapter must begin strictly later than the previous chapter; two chapters cannot mark the same instant.
Found this chapter start=ms, previous chapter start=ms.
A track cue block with an audio clip must carry an end time; the clip spans the cue block's interval [start, end].