xml.schema.mtm2015-1.sch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nordic-epub3-dtbook-migrator
Show all versions of nordic-epub3-dtbook-migrator
A DAISY Pipeline 2 module containing scripts for converting between and validating DTBook, HTML and EPUB3 according to nordic markup guidelines.
DTBook 2005 Schematron tests for TPB 2010-1 rules
[tpb07] Lists are not allowed inside paragraphs.
[tpb07] Definition lists are not allowed inside paragraphs.
[tpb08]<pagenum page="front"/> may only occur in <frontmatter/>
[tpb09] Element may not be empty
[tpb10] Meta dc:Language must occur at least once
[tpb10] Meta dc:Date=YYYY-MM-DD must occur once
[tpb10] Meta dc:Date must have format YYYY-MM-DD
[tpb10] Meta dc:Publisher must occur once
[tpb11] Root element must have an xml:lang attribute
[tpb12a] Frontmatter must begin with a doctitle element
[tpb12b] Docauthor may only be preceded by doctitle
[tpb13] A document must have frontmatter
[tpb13] A document must have bodymatter
[tpb14a] level1 with no h1 when level2 is present
[tpb14b] level2 with no h2 when level3 is present
[tpb14c] level3 with no h3 when level4 is present
[tpb14d] level4 with no h4 when level5 is present
[tpb14e] level5 with no h5 when level6 is present
[tpb14f] level with no hd when level is present
[tpb18] Element level is not allowed
[tpb20] Image groups are not allowed in inline context
[tpb21] Nested tables are not allowed
[tpb23] pagenum[@page='normal'] values must increase
[tpb24] pagenum[@page='front'] values must be unique
[tpb26] Each note must have at least one noteref
[tpb27] Each annotation must have at least one annoref
[tpb29] Block element used in inline context
[tpb29] Block element as sibling to inline element
[tpb29] Block element as sibling to inline element
[tpb29] Prodnote in inline context used as block element
[tpb40] No gaps may occur in page numbering
[tpb43] Meta dc:Publisher must exist and have value 'TPB', 'MTM', 'SPSM', 'Nota', 'NLB', 'Celia', 'SBS' or 'Dedicon'.
[tpb52] Images must have the .jpg file extension.
[tpb52] Images must have a base name, not just an extension.
[tpb51] Images must be in the same folder as the DTBook file.
[tpb52] Image file name
contains an illegal character (must be -_a-zA-Z0-9).
[tpb59] pagenum in definition list must occur between dd and dt
[tpb63] Only note references within the same document are allowed
[tpb64] Only annotation references within the same document are allowed
[tpb67a] doctitle is only allowed in frontmatter
[tpb67b] docauthor is only allowed in frontmatter
[tpb68] smilref attributes in a plain DTBook file is not allowed
[tpb72] DTBook version must be 2005-3.
[tpb93] element may not have leading whitespace
[tpb93] element may not
have trailing whitespace
[tpb96a] nested production notes are not allowed
[tpb96b] nested image groups are not allowed
[tpb101] There must be an img element in every imggroup
[tpb104] Heading may not be empty
[tpb105] Page attribute must appear on pagenum elements
[tpb110] pagenum elements are not
allowed in headings
[tpb116] Arabic numbers in page="front" are not allowed
[tpb120] Only pagenum elements are allowed before the heading .
[tpb121] Page numbers in tables must be placed between table rows.
[tpb123] Jacket copy must be in frontmatter
[tpb123] Jacket copy must follow immediately after docauthor or
doctitle
[tpb123] Colophon is not allowed in bodymatter
[tpb124] All documents must contain page numbers
[tpb125] Invalid image filename.
[tpb125] Images must be in JPG (*.jpg) format.
[tpb126] pagenum must not occur directly after hx unless the hx is preceded by a pagenum
[tpb127] Table of contents (<list class="toc">)must be inside a level1
[tpb127] Nested lists in table of contents must not have a 'toc' class
[tpb128] track:Guidelines metadata must occur once.
[tpb128] track:Guidelines metadata value must be 2011-1, 2011-2 or 2015-1.
[tpb130] dc:Language metadata must equal the root element xml:lang
[tpb131] xml:lang must match '^[a-z][a-z](-[A-Z][A-Z]+)?$'
[tpb133] Element is disallowed
[tpb134c] Attribute 'scheme' is not allowed on the element
[tpb134c] Attribute 'http-equiv' is not allowed on the element
[tpb135a] Element is only allowed in poem context
[tpb135b] Every poem must contain a linegroup
[tpb135b] Poem lines must be wrapped in a linegroup
[tpb136] Lists must be of type 'pl' (with any bullets or numbers in the text node)
[tpb137] Swedish description of unnumbered page used in english context
[tpb137] English description of unnumbered page used in swedish context
[tpb140] Only prodnote allowed in jacket copy
[tpb140] There must be at least one prodnote in jacket copy
[tpb140] Too many prodnotes with @class='frontcover' in jacket copy
[tpb140] Too many prodnotes with @class='rearcover' in jacket copy
[tpb140] Too many prodnotes with @class='leftflap' in jacket copy
[tpb140] Too many prodnotes with @class='rightflap' in jacket copy
[tpb141] prodnote in jacket copy must have a class attribute with one of
'frontcover', 'rearcover', 'leftflap' or 'rightflap'
[tpb142] Only @page='special' is allowed in level1/@class='nonstandardpagination'
[tpb143] pagenum is not allowed last in a list