+ <lb n="1" xml:id="a3v_lb1"/>als „den Bösen“ anzusetzen, höherwerthig im Sinn der Förderung, Nützlichkeit, Gedeihlichkeit in Hinsicht auf <hi rend="underline">den</hi> Menschen über<pc force="weak">-</pc>
+ <lb n="2" xml:id="a3v_lb2"/>haupt (die Zukunft des Menschen eingerechnet) Wie<subst>
+ </subst> wenn das Umgekehrte die Wahrheit wäre? Wie? wenn im „Guten“
+ <lb n="3" xml:id="a3v_lb3"/>auch ein Rückgangssymptom läge, insgleichen eine Gefahr, eine Verführung, ein Gift, ein <hi rend="latin">Narcoticum</hi>, durch das
+ <lb n="4" xml:id="a3v_lb4"/>etwa die Gegenwart <hi rend="underline">auf</hi>
+ <hi rend="underline">Kosten</hi>
+ <hi rend="underline">der</hi>
+ <hi rend="underline">Zukunft</hi> lebte? Vielleicht behaglicher, ungefährlicher, aber auch in kleinerem Stile,
+ <lb n="5" xml:id="a3v_lb5"/>niedriger?… So daß gerade die Moral daran Schuld wäre, wenn eine an sich mögliche <hi rend="underline">höchste</hi>
+ <hi rend="underline">Mächtigkeit</hi>
+ <hi rend="underline">und</hi>
+ <lb n="6" xml:id="a3v_lb6"/>
+ <hi rend="underline">Pracht</hi> des Typus Mensch niemals erreicht würde?… So daß gerade die Moral die Gefahr der Gefahren wäre?…</p>
+ </subst> selbst, seitdem mir dieser Ausblick sich öffnete, Gründe hatte, mich nach gelehrten, kühnen und arbeit<pc force="weak">-</pc>
+ <lb n="9" xml:id="a3v_lb9"/>samen Genossen umzusehn (ich thue es heute noch). Es gilt, das ungeheure, ferne <milestone unit="page" edRef="#Ed" n="XII"/>und so versteckte Land der Moral –
+ <lb n="10" xml:id="a3v_lb10"/>der wirklich dagewesenen, wirklich gelebten Moral – mit lauter neuen Fragen und gleichsam mit neuen Augen zu
+ <lb n="11" xml:id="a3v_lb11"/>bereisen: und heißt dies nicht beinahe so viel als dieses Land erst <hi rend="underline">entdecken</hi>?… Wenn ich dabei, unter Anderen,
+ <lb n="12" xml:id="a3v_lb12"/>auch an den genannten <hi rend="latin">Dr. Rée</hi> dachte, so geschah es, weil ich gar nicht zweifelte, daß er von der Natur seiner Fra<pc force="weak">-</pc>
+ <lb n="13" xml:id="a3v_lb13"/>gen selbst auf eine richtigere Methodik, um zu Antworten zu gelangen, gedrängt werden würde. Habe ich mich darin
+ <lb n="14" xml:id="a3v_lb14"/>betrogen? Mein Wunsch war es jedenfalls, einem so scharfen und unbetheiligten Auge eine bessere Richtung, die Rich<pc force="weak">-</pc>
+ <lb n="15" xml:id="a3v_lb15"/>tung zur wirklichen <hi rend="underline">Historie</hi>
+ <hi rend="underline">der</hi>
+ <hi rend="underline">Moral</hi> zu geben und ihn vor solchem englischen Hypothesenwesen <hi rend="underline">ins</hi>
+ <hi rend="underline">Blaue</hi>
+ <lb n="16" xml:id="a3v_lb16"/>noch zur rechten Zeit zu warnen. Es liegt ja auf der Hand, welche Farbe für einen Moral-Genealogen hundert
+ <lb n="17" xml:id="a3v_lb17"/>Mal wichtiger sein muß als gerade das Blaue: nämlich <hi rend="underline">das</hi>
+ <hi rend="underline">Graue</hi>, will sagen, das Urkundliche, das Wirklich<pc force="strong">-</pc>
+ <lb n="18" xml:id="a3v_lb18"/>Feststellbare, das Wirklich-Dagewesene, kurz die ganze lange schwer zu entziffernde Hieroglyphenschrift der
+ <lb n="19" xml:id="a3v_lb19"/>menschlichen Moral-Vergangenheit! – <hi rend="underline">Diese</hi> war dem <hi rend="latin">Dr. Rée</hi> unbekannt; aber er hatte Darwin gelesen – und
+ <lb n="20" xml:id="a3v_lb20"/>so reichen sich in seinen Hypothesen auf eine Weise, die zum Mindesten unterhaltend ist, die Darwinsche Bestie
+ </subst> artig die Hand, letzterer mit dem Ausdruck
+ <lb n="22" xml:id="a3v_lb22"/>einer gewissen gutmüthigen und feinen Indolenz im Gesicht, in die selbst ein Gran von Pessimismus, von Ermü<pc force="weak">-</pc>
+ <lb n="23" xml:id="a3v_lb23"/>dung eingemischt ist: als ob es sich eigent<milestone unit="page" edRef="#Ed" n="XIII"/>lich gar nicht lohne, alle diese Dinge – die Probleme der Moral <add place="inline" xml:id="a3v_add_d2e221">–</add> so
+ <lb n="24" xml:id="a3v_lb24"/>ernst zu nehmen. Mir nun scheint es umgekehrt gar keine Dinge zu geben, die es mehr <hi rend="underline">lohnten</hi>, daß man
+ <lb n="25" xml:id="a3v_lb25"/>sie ernst nimmt; zu welchem Lohne es zum Beispiel gehört, daß man eines Tags vielleicht die Erlaub<pc force="weak">-</pc>
+ <lb n="26" xml:id="a3v_lb26"/>niß erhält, sie <hi rend="underline">heiter</hi> zu nehmen. Die Heiterkeit nämlich oder, um es in meiner Sprache zu sagen, <hi rend="underline">die</hi>
+ <lb n="27" xml:id="a3v_lb27"/>
+ <hi rend="underline">fröhliche</hi>
+ <hi rend="underline">Wissenschaft</hi> – ist ein Lohn: ein Lohn für einen langen, tapferen, arbeitsamen <del rend="hatching" instant="true">Ernst</del> und unter<pc force="weak">-</pc>
+ <lb n="28" xml:id="a3v_lb28"/>irdischen Ernst, der freilich nicht Jedermanns Sache ist. An dem Tage aber, wo wir aus vollem Herzen
+ <lb n="29" xml:id="a3v_lb29"/>sagen: „vorwärts! auch unsre alte Moral gehört <hi rend="underline">in</hi>
+ <hi rend="underline">die</hi>
+ <hi rend="underline">Komödie</hi>!“ haben wir für das <subst change="#proofreadingCbTitel">
+ <note type="editorial" xml:id="a3v_note_d2e276">vgl. N an Naumann, 18.10.1887 (in KGB/KSB mit Fehllesung „hundertartige“, recte: „hundertactige“)</note> Dra<pc force="weak">-</pc>
+ <lb n="30" xml:id="a3v_lb30"/>ma vom „Schicksal der Seele“ eine neue Verwicklung und Möglichkeit entdeckt –: und er wird sie sich
+ <lb n="31" xml:id="a3v_lb31"/>schon zu Nutze machen, darauf darf man wetten, er, der große alte ewige Komödiendichter unsres Daseins!…</p>
+ <line xml:id="srcD_line_a3v_lb1" start="#a3v_lb1" n="1">als „den Bösen“ anzusetzen, höherwerthig im Sinn der Förderung, Nützlichkeit, Gedeihlichkeit in Hinsicht auf <hi rend="underline">den</hi> Menschen über<pc force="weak">-</pc>
+ </line>
+ <line xml:id="srcD_line_a3v_lb2" start="#a3v_lb2" n="2">haupt (die Zukunft des Menschen eingerechnet) Wie<subst>
+ </subst> wenn das Umgekehrte die Wahrheit wäre? Wie? wenn im „Guten“
+ </line>
+ <line xml:id="srcD_line_a3v_lb3" start="#a3v_lb3" n="3">auch ein Rückgangssymptom läge, insgleichen eine Gefahr, eine Verführung, ein Gift, ein <hi rend="latin">Narcoticum</hi>, durch das
+ </line>
+ <line xml:id="srcD_line_a3v_lb4" start="#a3v_lb4" n="4">etwa die Gegenwart <hi rend="underline">auf</hi>
+ <hi rend="underline">Kosten</hi>
+ <hi rend="underline">der</hi>
+ <hi rend="underline">Zukunft</hi> lebte? Vielleicht behaglicher, ungefährlicher, aber auch in kleinerem Stile,
+ </line>
+ <line xml:id="srcD_line_a3v_lb5" start="#a3v_lb5" n="5">niedriger?… So daß gerade die Moral daran Schuld wäre, wenn eine an sich mögliche <hi rend="underline">höchste</hi>
+ selbst, seitdem mir dieser Ausblick sich öffnete, Gründe hatte, mich nach gelehrten, kühnen und arbeit<pc force="weak">-</pc>
+ </line>
+ <line xml:id="srcD_line_a3v_lb9" start="#a3v_lb9" n="9">samen Genossen umzusehn (ich thue es heute noch). Es gilt, das ungeheure, ferne <milestone unit="page" edRef="#Ed" n="XII"/>und so versteckte Land der Moral –
+ </line>
+ <line xml:id="srcD_line_a3v_lb10" start="#a3v_lb10" n="10">der wirklich dagewesenen, wirklich gelebten Moral – mit lauter neuen Fragen und gleichsam mit neuen Augen zu
+ </line>
+ <line xml:id="srcD_line_a3v_lb11" start="#a3v_lb11" n="11">bereisen: und heißt dies nicht beinahe so viel als dieses Land erst <hi rend="underline">entdecken</hi>?… Wenn ich dabei, unter Anderen,
+ </line>
+ <line xml:id="srcD_line_a3v_lb12" start="#a3v_lb12" n="12">auch an den genannten <hi rend="latin">Dr. Rée</hi> dachte, so geschah es, weil ich gar nicht zweifelte, daß er von der Natur seiner Fra<pc force="weak">-</pc>
+ </line>
+ <line xml:id="srcD_line_a3v_lb13" start="#a3v_lb13" n="13">gen selbst auf eine richtigere Methodik, um zu Antworten zu gelangen, gedrängt werden würde. Habe ich mich darin
+ </line>
+ <line xml:id="srcD_line_a3v_lb14" start="#a3v_lb14" n="14">betrogen? Mein Wunsch war es jedenfalls, einem so scharfen und unbetheiligten Auge eine bessere Richtung, die Rich<pc force="weak">-</pc>
+ </line>
+ <line xml:id="srcD_line_a3v_lb15" start="#a3v_lb15" n="15">tung zur wirklichen <hi rend="underline">Historie</hi>
+ <hi rend="underline">der</hi>
+ <hi rend="underline">Moral</hi> zu geben und ihn vor solchem englischen Hypothesenwesen <hi rend="underline">ins</hi>
+ <hi rend="underline">Blaue</hi>
+ </line>
+ <line xml:id="srcD_line_a3v_lb16" start="#a3v_lb16" n="16">noch zur rechten Zeit zu warnen. Es liegt ja auf der Hand, welche Farbe für einen Moral-Genealogen hundert
+ </line>
+ <line xml:id="srcD_line_a3v_lb17" start="#a3v_lb17" n="17">Mal wichtiger sein muß als gerade das Blaue: nämlich <hi rend="underline">das</hi>
+ <hi rend="underline">Graue</hi>, will sagen, das Urkundliche, das Wirklich<pc force="strong">-</pc>
+ </line>
+ <line xml:id="srcD_line_a3v_lb18" start="#a3v_lb18" n="18">Feststellbare, das Wirklich-Dagewesene, kurz die ganze lange schwer zu entziffernde Hieroglyphenschrift der
+ </line>
+ <line xml:id="srcD_line_a3v_lb19" start="#a3v_lb19" n="19">menschlichen Moral-Vergangenheit! – <hi rend="underline">Diese</hi> war dem <hi rend="latin">Dr. Rée</hi> unbekannt; aber er hatte Darwin gelesen – und
+ </line>
+ <line xml:id="srcD_line_a3v_lb20" start="#a3v_lb20" n="20">so reichen sich in seinen Hypothesen auf eine Weise, die zum Mindesten unterhaltend ist, die Darwinsche Bestie
+ <line xml:id="srcD_line_a3v_lb22" start="#a3v_lb22" n="22">einer gewissen gutmüthigen und feinen Indolenz im Gesicht, in die selbst ein Gran von Pessimismus, von Ermü<pc force="weak">-</pc>
+ </line>
+ <line xml:id="srcD_line_a3v_lb23" start="#a3v_lb23" n="23">dung eingemischt ist: als ob es sich eigent<milestone unit="page" edRef="#Ed" n="XIII"/>lich gar nicht lohne, alle diese Dinge – die Probleme der Moral <add place="inline" corresp="#a3v_add_d2e221">–</add> so
+ </line>
+ <line xml:id="srcD_line_a3v_lb24" start="#a3v_lb24" n="24">ernst zu nehmen. Mir nun scheint es umgekehrt gar keine Dinge zu geben, die es mehr <hi rend="underline">lohnten</hi>, daß man
+ </line>
+ <line xml:id="srcD_line_a3v_lb25" start="#a3v_lb25" n="25">sie ernst nimmt; zu welchem Lohne es zum Beispiel gehört, daß man eines Tags vielleicht die Erlaub<pc force="weak">-</pc>
+ </line>
+ <line xml:id="srcD_line_a3v_lb26" start="#a3v_lb26" n="26">niß erhält, sie <hi rend="underline">heiter</hi> zu nehmen. Die Heiterkeit nämlich oder, um es in meiner Sprache zu sagen, <hi rend="underline">die</hi>
+ <hi rend="underline">Wissenschaft</hi> – ist ein Lohn: ein Lohn für einen langen, tapferen, arbeitsamen <del rend="hatching" instant="true">Ernst</del> und unter<pc force="weak">-</pc>
+ </line>
+ <line xml:id="srcD_line_a3v_lb28" start="#a3v_lb28" n="28">irdischen Ernst, der freilich nicht Jedermanns Sache ist. An dem Tage aber, wo wir aus vollem Herzen
+ </line>
+ <line xml:id="srcD_line_a3v_lb29" start="#a3v_lb29" n="29">sagen: „vorwärts! auch unsre alte Moral gehört <hi rend="underline">in</hi>
+ <hi rend="underline">die</hi>
+ <hi rend="underline">Komödie</hi>!“ haben wir für das
+ <line xml:id="srcD_line_a3v_lb30" start="#a3v_lb30" n="30">ma vom „Schicksal der Seele“ eine neue Verwicklung und Möglichkeit entdeckt –: und er wird sie sich
+ </line>
+ <line xml:id="srcD_line_a3v_lb31" start="#a3v_lb31" n="31">schon zu Nutze machen, darauf darf man wetten, er, der große alte ewige Komödiendichter unsres Daseins!…
+ "description": "This is the core API for TEI Publisher 7. It describes all endpoints used by TEI Publisher web components, plus additional operations added for external access."
+ },
+ "servers": [
+ {
+ "description": "Endpoint for testing on localhost",
+ "url":"/exist/apps/nietzsche-dm"
+ }
+ ],
+ "tags": [
+ {
+ "name": "documents",
+ "description": "Retrieve document content transformed to target format"
+ },
+ {
+ "name": "collection",
+ "description": "Browse the collection hierarchy and upload new files"
+ },
+ {
+ "name": "odd",
+ "description": "Manage the ODD files stored in TEI Publisher"
+ },
+ {
+ "name": "search",
+ "description": "Searching the collection"
+ },
+ {
+ "name": "transform",
+ "description": "Transform content on the fly"
+ },
+ {
+ "name": "view",
+ "description": "View documents via an HTML template"
+ },
+ {
+ "name": "apps",
+ "description": "Operations to generate/manage apps"
+ },
+ {
+ "name": "dts",
+ "description": "Implementation of the DTS (Distributed Text Services) API"
+ },
+ {
+ "name": "info",
+ "description": "Information about the server"
+ },
+ {
+ "name": "register",
+ "description": "Manage entries in the local authority file"
+ },
+ {
+ "name": "nlp",
+ "description": "Entity recognition and other natural language processing features"
+ }
+ ],
+ "components": {
+ "securitySchemes": {
+ "basicAuth": {
+ "type": "http",
+ "scheme": "basic"
+ },
+ "cookieAuth": {
+ "type": "apiKey",
+ "name": "teipublisher.com.login",
+ "in": "cookie"
+ }
+ }
+ },
+ "paths": {
+ "/{file}.html": {
+ "get": {
+ "summary": "Retrieve HTML page",
+ "description": "Retrieve an HTML page expanded through eXist templating. This is used to load the top-level HTML pages, e.g. `index.html`.",
+ "tags": ["view"],
+ "operationId": "vapi:html",
+ "x-error-handler": "vapi:handle-error",
+ "parameters": [
+ {
+ "name": "file",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "HTML of the page",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "The document was not found",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/{docid}": {
+ "get": {
+ "summary": "Retrieve the HTML template used for displaying a document",
+ "description": "Get the HTML template associated with the given document. This is called whenever the users tries to view a document. The actual content of the document will then be loaded by the template.",
+ "tags": ["view"],
+ "operationId": "vapi:view",
+ "x-error-handler": "vapi:handle-error",
+ "parameters": [
+ {
+ "name": "docid",
+ "in": "path",
+ "description": "Relative path to the document",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "example": "test/orlik_to_serafin.xml"
+ },
+ "allowReserved": true
+ },
+ {
+ "name": "template",
+ "in": "query",
+ "description": "Name of the template to be used. Overwrites any default template setting.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "view",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "enum": ["page", "div", "single"]
+ },
+ "example": "div",
+ "description": "The view type used by the main view which displays the document, e.g. 'page' or 'div'. This has an influence on the generated links, which need to differ when linking to a page rather than a section."
+ },
+ {
+ "name": "odd",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "action",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "HTML view for the document",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "The document was not found",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "An error occurred",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/print/{docid}": {
+ "get": {
+ "summary": "Generate a print preview using Paged Media CSS",
+ "tags": ["view"],
+ "operationId": "vapi:view",
+ "x-error-handler": "vapi:handle-error",
+ "parameters": [
+ {
+ "name": "docid",
+ "in": "path",
+ "description": "Relative path to the document",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "example": "test/orlik_to_serafin.xml"
+ },
+ "allowReserved": true
+ },
+ {
+ "name": "template",
+ "in": "query",
+ "description": "Name of the template to be used. Overwrites any default template setting.",
+ "schema": {
+ "type": "string",
+ "default": "print-preview.html"
+ }
+ },
+ {
+ "name": "odd",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "HTML view for the document",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "The document was not found",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "An error occurred",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/{docid}.md": {
+ "get": {
+ "summary": "Retrieve the HTML template for a markdown file and render it",
+ "description": "Get the HTML template associated with the given markdown document. This is called whenever the users tries to view a markdown file. The actual content of the document will then be loaded by the template.",
+ "tags": ["view"],
+ "operationId": "vapi:view",
+ "x-error-handler": "vapi:handle-error",
+ "parameters": [
+ {
+ "name": "docid",
+ "in": "path",
+ "description": "Relative path to the document",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "example": "about.md"
+ },
+ "allowReserved": true
+ },
+ {
+ "name": "template",
+ "in": "query",
+ "description": "Name of the template to be used. Overwrites any default template setting.",
+ "schema": {
+ "type": "string",
+ "default": "markdown.html"
+ }
+ },
+ {
+ "name": "suffix",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "default": ".md"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "HTML view for the document",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "The document was not found",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "An error occurred",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/version": {
+ "get": {
+ "summary": "Get version information about this service",
+ "description": "Get the version of TEI Publisher running this service as well as the API version implemented",
+ "operationId": "iapi:version",
+ "tags": ["info"],
+ "responses": {
+ "200": {
+ "description": "Version information about this service",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "api": {
+ "type": "string"
+ },
+ "app": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ }
+ },
+ "engine": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/collection/{path}": {
+ "get": {
+ "summary": "Get formatted overview of documents in the collection",
+ "tags": ["collection"],
+ "operationId": "capi:list",
+ "parameters": [
+ {
+ "name": "path",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "example": "test"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns HTML describing the collection",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/collection": {
+ "get": {
+ "summary": "Get formatted overview of documents in the collection",
+ "tags": ["collection"],
+ "operationId": "capi:list",
+ "responses": {
+ "200": {
+ "description": "Returns HTML describing the collection",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/upload": {
+ "post": {
+ "summary": "Upload a number of files to the top-level data collection of the app",
+ "tags": ["collection"],
+ "operationId": "capi:upload",
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "files[]": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Upload response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "number"
+ }
+ }
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Permission denied",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "description": {
+ "type": "string"
+ },
+ "details": {
+ "type": "object",
+ "nullable": true
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Upload collection not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Upload collection not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/upload/{collection}": {
+ "post": {
+ "summary": "Upload a number of files",
+ "tags": ["collection"],
+ "operationId": "capi:upload",
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "parameters": [
+ {
+ "name": "collection",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "files[]": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Upload response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "number"
+ }
+ }
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Permission denied",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "description": {
+ "type": "string"
+ },
+ "details": {
+ "type": "object",
+ "nullable": true
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Upload collection not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Upload collection not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/document/{id}": {
+ "get": {
+ "summary": "Get the source of a document",
+ "description": "Get the source of a document, either as XML, text or binary.",
+ "tags": ["documents"],
+ "operationId": "dapi:source",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Content of the document",
+ "content": {
+ "application/xml": {
+ "schema": {
+ "type": "string"
+ }
+ },
+ "text/markdown": {
+ "schema": {
+ "type": "string"
+ }
+ },
+ "text/text": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "410": {
+ "description": "Document deleted"
+ }
+ }
+ },
+ "delete": {
+ "summary": "Delete a document",
+ "tags": ["documents"],
+ "operationId": "dapi:delete",
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "410": {
+ "description": "Document deleted"
+ }
+ }
+ }
+ },
+ "/api/document/{id}/html": {
+ "get": {
+ "summary": "Retrieve document content as HTML",
+ "description": "Retrieve whole document transformed to HTML via ODD",
+ "description": "Returns the entire document as HTML",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Document not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/document/{id}/print": {
+ "get": {
+ "summary": "Retrieve document content as HTML optimized for Print CSS",
+ "tags": ["documents"],
+ "operationId": "dapi:print",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "example": "test/F-rom.xml"
+ }
+ },
+ {
+ "name": "odd",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "shakespeare.odd"
+ }
+ },
+ {
+ "name": "base",
+ "description": "Base URI to use for resolving links and images",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "wc",
+ "description": "Include TEI Publisher webcomponents if set. 'page' will also inject a <pb-page> wrapper if not present, using parameter 'base' as endpoint.",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "style",
+ "description": "Additional CSS stylesheet URLs to be loaded",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "description": "Additional script URLs to be loaded",
+ "name": "script",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns the entire document as HTML",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Document not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/document/{id}/pdf": {
+ "get": {
+ "summary": "Retrieve document content as PDF",
+ "description": "Retrieve whole document transformed via ODD and FO",
+ "tags": ["documents"],
+ "operationId": "dapi:pdf",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "example": "test/F-rom.xml"
+ },
+ "description": "Path to the XML document"
+ },
+ {
+ "name": "source",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "default": false
+ },
+ "description": "Set to true to see generated XML FO source"
+ },
+ {
+ "name": "token",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ {
+ "name": "cache",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns a PDF",
+ "content": {
+ "application/pdf": {
+ "schema": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "application/xml": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Document not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/document/{id}/tex": {
+ "get": {
+ "summary": "Retrieve document content as PDF",
+ "description": "Retrieve whole document transformed via ODD and LaTeX",
+ "tags": ["documents"],
+ "operationId": "dapi:latex",
+ "x-error-handler": "vapi:handle-error",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "example": "test/F-rom.xml"
+ }
+ },
+ {
+ "name": "source",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns a PDF",
+ "content": {
+ "application/pdf": {
+ "schema": {
+ "type": "string",
+ "format": "binary"
+ }
+ },
+ "application/x-latex": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Document not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "LaTeX processing failed",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/document/{id}/epub": {
+ "get": {
+ "summary": "Retrieve document content as EPub",
+ "description": "Retrieve whole document as EPub transformed via ODD",
+ "tags": ["documents"],
+ "operationId": "dapi:epub",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "example": "doc/documentation.xml"
+ }
+ },
+ {
+ "name": "token",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "lang",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "odd",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "docbook.odd"
+ }
+ },
+ {
+ "name": "images-collection",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "/apps/tei-publisher/data"
+ }
+ },
+ {
+ "name": "skip-title",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "example": "true"
+ }
+ },
+ {
+ "name": "cover-image",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "images/cover.jpg"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns an ePUB",
+ "content": {
+ "application/epub+zip": {
+ "schema": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Document not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/document/{id}/meta": {
+ "get": {
+ "summary": "Returns some metadata about the document",
+ "description": "The view type used by the main view which displays the document, e.g. 'page' or 'div'. This has an influence on the generated links, which need to differ when linking to a page rather than a section."
+ },
+ {
+ "name": "target",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "description": "The target channel into which link selection events should be send (if the user clicks on a link)"
+ },
+ {
+ "name": "icons",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "default": true
+ },
+ "description": "Should an expand/collapse icon be displayed next to headings having nested child sections?"
+ },
+ {
+ "name": "If-Modified-Since",
+ "in": "header",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns the formatted table of contents as HTML",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Document not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/parts/{doc}/{format}": {
+ "get": {
+ "summary": "Retrieve parts of a document transformed via ODD",
+ "description": "Retrieve a document fragment, usually a division or page, transformed to HTML via the ODD. This operation is internally used by pb-view, but can also be helpful with pb-load or in other contexts.",
+ "operationId": "dapi:get-fragment",
+ "tags": ["documents"],
+ "parameters": [
+ {
+ "name": "doc",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "example": "doc/documentation.xml",
+ "description": "path to the document, relative to TEI Publisher's data root colletion"
+ },
+ {
+ "name": "format",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "enum": ["json", "html"]
+ },
+ "description": "the format to return: either `json` or `html`. The first returns the HTML inside a JSON record with additional information about the next/previous page and so on. The latter is mainly for debugging purposes."
+ },
+ {
+ "name": "odd",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "shakespeare.odd"
+ }
+ },
+ {
+ "name": "view",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "enum": ["page", "div", "single"]
+ },
+ "example": "div",
+ "description": "the view to use: this determines the size of the fragment returned, i.e. just a page, a whole division or the entire document"
+ },
+ {
+ "name": "root",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "description": "an eXist node id used to identify the root of the fragment to return. mainly used to navigate to the next/previous fragment based on the properties received in the JSON record during a preceding request."
+ },
+ {
+ "name": "id",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "description": "an xml:id to load: can be used instead of `root` to determine the fragment root to be loaded. Should be an xml:id existing in the document."
+ },
+ {
+ "name": "xpath",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "description": "an XPath expression to directly select a sub-part of the document, e.g. the TEI body, front or back matter, or teiHeader. Usually only makes sense in combination with `view=single`."
+ },
+ {
+ "name": "map",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "description": "defines an optional mapping function (written in XQuery), which can be used to replace the document content to be processed with something else. Used to e.g. look up the translation for a given transcription and process it instead."
+ },
+ {
+ "name": "highlight",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "If-Modified-Since",
+ "in": "header",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "view": {
+ "type": "string",
+ "description": "the view type used"
+ },
+ "doc": {
+ "type": "string",
+ "description": "path to the document from which the fragment was retrieved"
+ },
+ "root": {
+ "type": "string",
+ "nullable": true
+ },
+ "odd": {
+ "type": "string",
+ "description": "the ODD used for the transformation"
+ },
+ "next": {
+ "type": "string",
+ "nullable": true,
+ "description": "points to the next fragment in the document. Pass this value as `root` in a follow up request."
+ },
+ "previous": {
+ "type": "string",
+ "nullable": true,
+ "description": "points to the previous fragment in the document. Pass this value as `root` in a follow up request."
+ },
+ "switchView": {
+ "type": "string",
+ "nullable": true
+ },
+ "content": {
+ "type": "string",
+ "description": "the content of the fragment as HTML string"
+ },
+ "footnotes": {
+ "type": "string",
+ "nullable": true
+ }
+ }
+ }
+ },
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Document not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/odd/{odd}": {
+ "get": {
+ "summary": "Retrieve an ODD",
+ "description": "Retrieve an ODD as TEI/XML",
+ "tags": ["odd"],
+ "operationId": "oapi:get-odd",
+ "parameters": [
+ {
+ "name": "odd",
+ "in": "path",
+ "description": "Filename of the ODD including suffix (.odd)",
+ "schema": {
+ "type": "string",
+ "example": "docbook.odd"
+ },
+ "required": true
+ },
+ {
+ "name": "ident",
+ "in": "query",
+ "description": "Only return the elementSpec matching this ident. If set, response will be in JSON format.",
+ "schema": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ {
+ "name": "root",
+ "in": "query",
+ "description": "Context path against which the the ODD path will be resolved. Used by ODD editor.",
+ "schema": {
+ "type": "string",
+ "nullable": true
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns the TEI/XML source of the ODD",
+ "content": {
+ "application/xml": {
+ "schema": {
+ "type": "string"
+ }
+ },
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "ODD not found"
+ }
+ }
+ },
+ "delete": {
+ "summary": "Delete an ODD from the database",
+ "description": "Delete the ODD given in the path parameter from the database. The ODD should be located in the collection referenced by `config:odd-root` in `modules/config.xqm`.",
+ "tags": ["odd"],
+ "operationId": "oapi:delete-odd",
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "parameters": [
+ {
+ "name": "odd",
+ "in": "path",
+ "schema": {
+ "type": "string",
+ "example": "testodd.odd"
+ },
+ "description": "Filename of the ODD including suffix (.odd)",
+ "required": true
+ }
+ ],
+ "responses": {
+ "410": {
+ "description": "ODD was deleted"
+ },
+ "404": {
+ "description": "ODD not found"
+ }
+ }
+ },
+ "post": {
+ "summary": "Create an ODD",
+ "description": "Create a new ODD using the file name given in the path",
+ "tags": ["odd"],
+ "operationId": "oapi:create-odd",
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "parameters": [
+ {
+ "name": "odd",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "description": "Filename of the ODD without suffix (.odd)",
+ "required": true
+ },
+ {
+ "name": "title",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "ODD was created",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Permission denied",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "put": {
+ "summary": "Save ODD",
+ "description": "Replace an ODD with the current version from the editor",
+ "tags": ["odd"],
+ "operationId": "oapi:save-odd",
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "parameters": [
+ {
+ "name": "odd",
+ "in": "path",
+ "schema": {
+ "type": "string",
+ "example": "testodd.odd"
+ },
+ "description": "Filename of the ODD with the suffix (.odd)",
+ "required": true
+ },
+ {
+ "name": "root",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "/db/apps/tei-publisher/odd"
+ },
+ "description": "Collection into which the ODD should be written"
+ },
+ {
+ "name": "output-root",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "/db/apps/tei-publisher/transform"
+ },
+ "description": "The collection into which generated code files will be written"
+ },
+ {
+ "name": "output-prefix",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "transform"
+ },
+ "description": "Relative path (from app root) used for resolving connected CSS files"
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/xml": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "ODD was saved",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "report": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Permission denied",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/odd": {
+ "get": {
+ "summary": "Get a list of ODDs available",
+ "operationId": "oapi:list-odds",
+ "tags": ["odd"],
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string",
+ "nullable": true
+ },
+ "path": {
+ "type": "string"
+ },
+ "canWrite": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "post": {
+ "summary": "Recompile ODDs",
+ "description": "Recompile one or more ODDs after they were changed",
+ "operationId": "oapi:recompile",
+ "tags": ["odd"],
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "parameters": [
+ {
+ "name": "odd",
+ "in": "query",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "check",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "default": false
+ },
+ "description": "Run additional check to ensure the generated code is valid and compiles"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ODDs were recompiled. The result of the compilation is returned as HTML.",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/lint": {
+ "post": {
+ "summary": "Check an XPath/XQuery snippet",
+ "description": "Check an XPath/XQuery snippet used in an ODD for syntactical correctness (called by ODD editor)",
+ "operationId": "oapi:lint",
+ "tags": ["odd"],
+ "parameters": [
+ {
+ "name": "code",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "starts-with(., 'f')"
+ },
+ "description": "Code snippet",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/templates": {
+ "get": {
+ "summary": "List available HTML templates",
+ "description": "Lists all page layout templates available for the document view. Used by `pb-select-templates`.",
+ "tags": ["view"],
+ "operationId": "iapi:list-templates",
+ "responses": {
+ "200": {
+ "description": "Array of templates",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/search": {
+ "get": {
+ "summary": "Run a search on all TEI Publisher collections",
+ "operationId": "sapi:search",
+ "tags": ["search"],
+ "parameters": [
+ {
+ "name": "query",
+ "in": "query",
+ "description": "Query string",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "field",
+ "in": "query",
+ "description": "The field to query",
+ "schema": {
+ "type": "string",
+ "default": "text"
+ }
+ },
+ {
+ "name": "start",
+ "in": "query",
+ "description": "Start offset of the first item to show from the result set",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per-page",
+ "in": "query",
+ "description": "Number of items to show on one page",
+ "schema": {
+ "type": "integer",
+ "default": 10
+ }
+ },
+ {
+ "name": "doc",
+ "in": "query",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "nullable": true
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Search results returned",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/search/facets": {
+ "get": {
+ "summary": "List facets",
+ "description": "Return a list of facet counts for current search results",
+ "operationId": "sapi:facets",
+ "tags": ["search"],
+ "responses": {
+ "200": {
+ "description": "Facets returned",
+ "content": {
+ "text/html": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/search/autocomplete": {
+ "get": {
+ "summary": "List possible completions",
+ "description": "Return a list of possible completions for the given search term",
+ "operationId": "sapi:autocomplete",
+ "tags": ["search"],
+ "parameters": [
+ {
+ "name": "query",
+ "in": "query",
+ "description": "The prefix to expand",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ },
+ {
+ "name": "field",
+ "in": "query",
+ "description": "The field to query",
+ "schema": {
+ "title": "string",
+ "default": "text"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "List of possible completions",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/convert": {
+ "post": {
+ "summary": "Convert a Word document to TEI/XML",
+ "tags": ["transform"],
+ "operationId": "dapi:convert-docx",
+ "parameters": [
+ {
+ "name": "odd",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "default": "docx.odd"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/xml": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Resulting TEI/XML output",
+ "content": {
+ "application/xml": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/preview": {
+ "post": {
+ "summary": "Post an XML document and get a preview rendered via ODD",
+ "tags": ["transform"],
+ "operationId": "dapi:preview",
+ "parameters": [
+ {
+ "name": "odd",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "base",
+ "description": "Base URI to use for the HTML document",
+ "description": "The collections endpoint is used for navigating collections. A collection contains metadata for the collection itself and an array of members. Each member is either a collection or the metadata for a document.",
+ "operationId": "dts:collection",
+ "tags": ["dts"],
+ "parameters": [
+ {
+ "name": "id",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "page",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per-page",
+ "in": "query",
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "nav",
+ "in": "query",
+ "schema":{
+ "type": "string",
+ "enum": [
+ "parents",
+ "children"
+ ],
+ "default": "children"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Collection metadata",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/dts/document": {
+ "get": {
+ "summary": "Document endpoint",
+ "description": "The Document endpoint is used to access and modify the content of document, as opposed to metadata (which is found in collections).",
+ "operationId": "dts:documents",
+ "tags": ["dts"],
+ "parameters": [
+ {
+ "name": "id",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "TEI/XML of the document",
+ "content": {
+ "application/xml": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/dts/import": {
+ "get": {
+ "summary": "Import a remote resource into local database",
+ "description": "Helper operation to import a remote resource, optionally into a temporary collection",
+ "tags": ["dts"],
+ "operationId": "dts:import",
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "parameters": [
+ {
+ "name": "uri",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ },
+ {
+ "name": "temp",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Content was successfully imported",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "nullable": false
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/annotations/occurrences": {
+ "post": {
+ "summary": "For each ID passed in, return the number of already marked up occurrences in TEI texts",
+ "tags": ["annotations"],
+ "operationId": "anno:find-references",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "register",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "an object mapping IDs to number of occurrences",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/annotations/merge/{path}": {
+ "post": {
+ "summary": "Merge annotations into source TEI",
+ "tags": ["annotations"],
+ "operationId": "anno:save",
+ "requestBody": {
+ "description": "An array of annotations to be applied",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string"
+ },
+ "start": {
+ "type": "number"
+ },
+ "end": {
+ "type": "number"
+ },
+ "type": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "properties": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "path",
+ "in": "path",
+ "description": "Relative path to the TEI document to be changed",
+ "schema": {
+ "type": "string",
+ "example": "annotate/graves20.xml"
+ },
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns the merged TEI XML",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "put": {
+ "summary": "Merge annotations into source TEI and store the resulting document",
+ "tags": ["annotations"],
+ "operationId": "anno:save",
+ "x-constraints": {
+ "groups": ["tei"]
+ },
+ "requestBody": {
+ "description": "An array of annotations to be applied",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string"
+ },
+ "start": {
+ "type": "number"
+ },
+ "end": {
+ "type": "number"
+ },
+ "type": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "properties": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "path",
+ "in": "path",
+ "description": "Relative path to the TEI document to be changed",
+ "schema": {
+ "type": "string",
+ "example": "annotate/graves20.xml"
+ },
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns the merged TEI XML",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/nlp/entities/{id}": {
+ "get": {
+ "summary": "Call entity extraction on a document",
+ "operationId": "nlp:entity-recognition",
+ "tags": ["nlp"],
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ },
+ {
+ "name": "model",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "example": "en_core_web_sm"
+ },
+ "required": true
+ },
+ {
+ "name": "debug",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "JSON structure listing the entities found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/nlp/patterns/{id}": {
+ "get": {
+ "summary": "Apply rule-based pattern matching",
+ "description": "Use rule-based pattern matching to find entities in a document",
+ "operationId": "nlp:pattern-recognition",
+ "tags": ["nlp"],
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ },
+ {
+ "name": "lang",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "default": "en"
+ }
+ },
+ {
+ "name": "debug",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "JSON structure listing the entities found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/nlp/text/{id}": {
+ "get": {
+ "summary": "Retrieve plain text of a document",
+ "description": "Get the plain text of the given document fragment to be fed into entity recognition",
+ "operationId": "nlp:plain-text",
+ "tags": ["nlp"],
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Plain text of the document fragment",
+ "content": {
+ "text/text": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/nlp/status": {
+ "get": {
+ "summary": "Return status information about NER",
+ "description": "Return status information about NER, including installed pipelines",
+ "tags": ["nlp"],
+ "operationId": "nlp:status",
+ "responses": {
+ "200": {
+ "description": "JSON object describing status",
+ "content": {
+ "application/json":{
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/nlp/status/models": {
+ "get": {
+ "summary": "Return list of available models",
+ "tags": ["nlp"],
+ "operationId": "nlp:models",
+ "responses": {
+ "200": {
+ "description": "JSON array listing models",
+ "content": {
+ "application/json":{
+ "schema": {
+ "type": "array"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/nlp/train/{id}": {
+ "get": {
+ "summary": "Train an NER model",
+ "description": "Train an NER model based on training data, which will be generated from a given document or collection",
+ "tags": ["nlp"],
+ "operationId": "nlp:train-model",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "Relative path to document or collection",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ },
+ {
+ "name": "name",
+ "in": "query",
+ "description": "Name of the model to create",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ },
+ {
+ "name": "base",
+ "in": "query",
+ "description": "Base model to extend",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "lang",
+ "in": "query",
+ "description": "Language to create the model for",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "copy_vectors",
+ "in": "query",
+ "description": "Base model to copy vector layer from",
+ "schema":{
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Process ID of the running training",
+ "content": {
+ "application/json":{
+ "schema": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/nlp/log/{pid}": {
+ "get": {
+ "summary": "Return log messages for an ongoing training",
+ "tags": ["nlp"],
+ "operationId": "nlp:log",
+ "parameters": [
+ {
+ "name": "pid",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Training completed",
+ "content": {
+ "text/text":{
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "202": {
+ "description": "Training in progress",
+ "content": {
+ "text/text":{
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/nlp/data/{id}": {
+ "get": {
+ "summary": "Download training data for NER",
+ "description": "Generate training data for NER from a given document or collection",
+ "tags": ["nlp"],
+ "operationId": "nlp:train",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "Relative path to document or collection",
+ "schema": {
+ "type": "string"
+ },
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "JSON array with training data",
+ "content": {
+ "application/json":{
+ "schema": {
+ "type": "array"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/register/search/{type}" : {
+ "get": {
+ "summary": "Search for a register entry",
+ "operationId": "anno:query-register",
+ "tags": ["register"],
+ "parameters": [
+ {
+ "name": "type",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "example": "place"
+ },
+ {
+ "name": "query",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "example": "Deya"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Results from the local register",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/register/{type}/{id}" : {
+ "post": {
+ "summary": "Create a local entry",
+ "description": "Create a local register entry based on the provided data",
+ "tags": ["register"],
+ "operationId": "anno:save-local-copy",
+ "requestBody": {
+ "description": "JSON record providing base information for the entry",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "type",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "example": "place"
+ },
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "example": "Deia"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Results from the local register",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "get": {
+ "summary": "Retrieve a register entry",
+ "operationId": "anno:register-entry",
+ "tags": ["register"],
+ "parameters": [
+ {
+ "name": "type",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "example": "place"
+ },
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "example": "Deia"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Results from the local register",
+declare function deploy:copy-resource($target as xs:string, $source as xs:string, $name as xs:string, $userData as xs:string+, $permissions as xs:string) {
+ (: Here the actual query commences. This is split into two parts, the first for a Lucene query and the second for an ngram query. :)
+ (:The query passed to a Luecene query in ft:query is an XML element <query> containing one or two <bool>. The <bool> contain the original query and the transliterated query, as indicated by the user in $query-scripts.:)
+ let $hitsAll :=
+ (:If the $query-scope is narrow, query the elements immediately below the lowest div in tei:text and the four major element below tei:teiHeader.:)
+ for $hit in query:query-default($request?parameters?field, $request?parameters?query, $request?parameters?doc, ())
+ order by ft:score($hit) descending
+ return $hit
+ let $hitCount := count($hitsAll)
+ let $hits := if ($hitCount > 1000) then subsequence($hitsAll, 1, 1000) else $hitsAll
+ <model predicate="$parameters?cstyle(.)/name[@w:val = 'tei:persName'] and matches(., '&#60;.*&#62;')" behaviour="inline">
+ <desc>Example for encoding @ref attached to a tei:persName element using a convention. Content between angle brackets will be stripped by post-processing</desc>
+ <xs:documentation>provides an externally-defined means of identifying the entity (or entities) being named, using a coded value of some kind.</xs:documentation>
+ <xs:documentation>(reference) provides an explicit means of locating a full definition or identity for the entity being named by means of one or more URIs.</xs:documentation>
+ <xs:documentation>indicates the size of the object concerned using a project-specific vocabulary combining quantity and units in a single string of words.</xs:documentation>
+ <xs:documentation>indicates whether or not the element bearing this attribute should be considered to mark the end of an orthographic token in the same way as whitespace.</xs:documentation>
+ <xs:documentation>supplies a pointer to some location defining a named period of time within which the datable item is understood to have occurred.</xs:documentation>
+ <xs:documentation>indicates whether or not this element is selected by default when its parent is selected.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true">
+ <xs:annotation>
+ <xs:documentation>This element is selected if its parent is selected</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="false">
+ <xs:annotation>
+ <xs:documentation>This element can only be selected explicitly, unless it is the only one of its kind, in which case it is selected if its parent is selected.</xs:documentation>
+ <xs:documentation>identifies one or more declarable elements within the header, which are understood to apply to the element bearing this attribute and its content.</xs:documentation>
+ <xs:documentation>specifies whether or not its parent element is fragmented in some way, typically by some other overlapping structure: for example a speech which is divided between two or more verse stanzas, a paragraph which is split across a page division, a verse line which is divided between two speakers.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="Y">
+ <xs:annotation>
+ <xs:documentation>(yes) the element is fragmented in some (unspecified) respect</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="N">
+ <xs:annotation>
+ <xs:documentation>(no) the element is not fragmented, or no claim is made as to its completeness</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="I">
+ <xs:annotation>
+ <xs:documentation>(initial) this is the initial part of a fragmented element</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>(medial) this is a medial part of a fragmented element</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="F">
+ <xs:annotation>
+ <xs:documentation>(final) this is the final part of a fragmented element</xs:documentation>
+ <xs:documentation>(organization) specifies how the content of the division is organized.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="composite">
+ <xs:annotation>
+ <xs:documentation>no claim is made about the sequence in which the immediate contents of this division are to be processed, or their inter-relationships.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="uniform">
+ <xs:annotation>
+ <xs:documentation>the immediate contents of this element are regarded as forming a logical unit, to be processed in sequence.</xs:documentation>
+ <xs:documentation>(responsible party) indicates the agency responsible for the intervention or interpretation, for example an editor or transcriber.</xs:documentation>
+ <xs:documentation>there is internal evidence to support the intervention.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="external">
+ <xs:annotation>
+ <xs:documentation>there is external evidence to support the intervention.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="conjecture">
+ <xs:annotation>
+ <xs:documentation>the intervention or interpretation has been made by the editor, cataloguer, or scholar on the basis of their expertise.</xs:documentation>
+ <xs:documentation>contains an expression in some formal style definition language which defines the rendering or presentation used for this element in the source text</xs:documentation>
+ <xs:documentation>characterizes the particular script or writing style used by this hand, for example secretary, copperplate, Chancery, Italian, etc.</xs:documentation>
+ <xs:documentation>may be used to specify further information about the entity referenced by this name in the form of a set of whitespace-separated values, for example the occupation of a person, or the status of a place.</xs:documentation>
+ <xs:documentation>(reference to the canonical name) provides a means of locating the canonical form (nym) of the names associated with the object named by the element bearing it.</xs:documentation>
+ <xs:documentation>specifies the intended meaning when the target of a pointer is itself a pointer.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="all">
+ <xs:annotation>
+ <xs:documentation>if the element pointed to is itself a pointer, then the target of that pointer will be taken, and so on, until an element is found which is not a pointer.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="one">
+ <xs:annotation>
+ <xs:documentation>if the element pointed to is itself a pointer, then its target (whether a pointer or not) is taken as the target of this pointer.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="none">
+ <xs:annotation>
+ <xs:documentation>no further evaluation of targets is carried out beyond that needed to find the element specified in the pointer's target.</xs:documentation>
+ <xs:documentation>optionally specifies the identifiers of the elements within which all elements indicated by the contents of this element lie.</xs:documentation>
+ <xs:documentation>(edition) supplies a sigil or other arbitrary identifier for the source edition in which the associated feature (for example, a page, column, or line break) occurs at this point in the text.</xs:documentation>
+ <xs:documentation>(edition reference) provides a pointer to the source edition in which the associated feature (for example, a page, column, or line break) occurs at this point in the text.</xs:documentation>
+ <xs:documentation>indicates the effect of the intervention, for example in the case of a deletion, strikeouts which include too much or too little text, or in the case of an addition, an insertion which duplicates some of the text already present.
+ <xs:documentation>(sequence) assigns a sequence number related to the order in which the encoded features carrying this attribute are believed to have occurred.</xs:documentation>
+ <xs:documentation>identifies a word or phrase as belonging to some language other than that of the surrounding text. [3.3.2.1. Foreign Words or Expressions]</xs:documentation>
+ <xs:documentation>(emphasized) marks words or phrases which are stressed or emphasized for linguistic or rhetorical effect. [3.3.2.2. Emphatic Words and Phrases 3.3.2. Emphasis, Foreign Words, and Unusual Language]</xs:documentation>
+ <xs:documentation>(highlighted) marks a word or phrase as graphically distinct from the surrounding text, for reasons concerning which no claim is made. [3.3.2.2. Emphatic Words and Phrases 3.3.2. Emphasis, Foreign Words, and Unusual Language]</xs:documentation>
+ <xs:documentation>identifies any word or phrase which is regarded as linguistically distinct, for example as archaic, technical, dialectal, non-preferred, etc., or as forming part of a sublanguage. [3.3.2.3. Other Linguistically Distinct Material]</xs:documentation>
+ <xs:documentation>specifies how the phrase is distinct diachronically</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="space" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>specifies how the phrase is distinct diatopically</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="social" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>specifies how the phrase is distinct diastratically</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="said">
+ <xs:annotation>
+ <xs:documentation>(speech or thought) indicates passages thought or spoken aloud, whether explicitly indicated in the source or not, whether directly or indirectly reported, whether by real people or fictional characters. [3.3.3. Quotation]</xs:documentation>
+ <xs:documentation>may be used to indicate whether the quoted matter is regarded as having been vocalized or signed.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:boolean">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="unknown">
+ <xs:annotation>
+ <xs:documentation/>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="inapplicable">
+ <xs:annotation>
+ <xs:documentation/>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="direct" default="true">
+ <xs:annotation>
+ <xs:documentation>may be used to indicate whether the quoted matter is regarded as direct or indirect speech.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:boolean">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="unknown">
+ <xs:annotation>
+ <xs:documentation/>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="inapplicable">
+ <xs:annotation>
+ <xs:documentation/>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="quote">
+ <xs:annotation>
+ <xs:documentation>(quotation) contains a phrase or passage attributed by the narrator or author to some agency external to the text. [3.3.3. Quotation 4.3.1. Grouped Texts]</xs:documentation>
+ <xs:documentation>(quoted) contains material which is distinguished from the surrounding text using quotation marks or a similar method, for any one of a variety of reasons including, but not limited to: direct speech or thought, technical terms or jargon, authorial distance, quotations from elsewhere, and passages that are mentioned but not used. [3.3.3. Quotation]</xs:documentation>
+ <xs:documentation>(cited quotation) contains a quotation from some other document, together with a bibliographic reference to its source. In a dictionary it may contain an example text with at least one occurrence of the word form, used in the sense being described, or a translation of the headword, or an example. [3.3.3. Quotation 4.3.1. Grouped Texts 9.3.5.1. Examples]</xs:documentation>
+ <xs:documentation>contains a word or phrase for which the author or narrator indicates a disclaiming of responsibility, for example by the use of scare quotes or italics. [3.3.3. Quotation]</xs:documentation>
+ <xs:documentation>(description) contains a brief description of the object documented by its parent element, typically a documentation element or an entity. [22.4.1. Description of Components]</xs:documentation>
+ <xs:documentation>identifies a phrase or word used to provide a gloss or definition for some other word or phrase. [3.3.4. Terms, Glosses, Equivalents, and Descriptions 22.4.1. Description of Components]</xs:documentation>
+ <xs:documentation>contains a single-word, multi-word, or symbolic designation which is regarded as a technical term. [3.3.4. Terms, Glosses, Equivalents, and Descriptions]</xs:documentation>
+ <xs:documentation>(Latin for thus or so) contains text reproduced although apparently incorrect or inaccurate. [3.4.1. Apparent Errors]</xs:documentation>
+ <xs:documentation>(correction) contains the correct form of a passage apparently erroneous in the copy text. [3.4.1. Apparent Errors]</xs:documentation>
+ <xs:documentation>(original form) contains a reading which is marked as following the original, rather than being normalized or corrected. [3.4.2. Regularization and
+ <xs:documentation>indicates a point where material has been omitted in a transcription, whether for editorial reasons described in the TEI header, as part of sampling practice, or because the material is illegible, invisible, or inaudible. [3.4.3. Additions, Deletions, and Omissions]</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="add">
+ <xs:annotation>
+ <xs:documentation>(addition) contains letters, words, or phrases inserted in the source text by an author, scribe, or a previous annotator or corrector. [3.4.3. Additions, Deletions, and Omissions]</xs:documentation>
+ <xs:documentation>(deletion) contains a letter, word, or passage deleted, marked as deleted, or otherwise indicated as superfluous or spurious in the copy text by an author, scribe, or a previous annotator or corrector. [3.4.3. Additions, Deletions, and Omissions]</xs:documentation>
+ <xs:documentation>contains a word, phrase, or passage which cannot be transcribed with certainty because it is illegible or inaudible in the source. [11.3.3.1. Damage, Illegibility, and Supplied Text 3.4.3. Additions, Deletions, and Omissions]</xs:documentation>
+ <xs:documentation>(referencing string) contains a general purpose name or referring string. [13.2.1. Personal Names 3.5.1. Referring Strings]</xs:documentation>
+ <xs:documentation>(electronic mail address) contains an email address identifying a location to which email messages can be delivered. [3.5.2. Addresses]</xs:documentation>
+ <xs:documentation>contains a postal address, for example of a publisher, an organization, or an individual. [3.5.2. Addresses 2.2.4. Publication, Distribution, Licensing, etc. 3.11.2.4. Imprint, Size of a Document, and Reprint Information]</xs:documentation>
+ <xs:documentation>(address line) contains one line of a postal address. [3.5.2. Addresses 2.2.4. Publication, Distribution, Licensing, etc. 3.11.2.4. Imprint, Size of a Document, and Reprint Information]</xs:documentation>
+ <xs:documentation>contains a full street address including any name or number identifying a building as well as the name of the street or route on which it is located. [3.5.2. Addresses]</xs:documentation>
+ <xs:documentation>(postal code) contains a numerical or alphanumeric code used as part of a postal address to simplify sorting or delivery of mail. [3.5.2. Addresses]</xs:documentation>
+ <xs:documentation>(postal box or post office box) contains a number or other identifier for some postal delivery point other than a street address. [3.5.2. Addresses]</xs:documentation>
+ <xs:documentation>supplies the value of the number in standard form.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:double xs:decimal">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:pattern value="(\-?[\d]+/\-?[\d]+)"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="measure">
+ <xs:annotation>
+ <xs:documentation>contains a word or phrase referring to some quantity of an object or commodity, usually comprising a number, a unit, and a commodity name. [3.5.3. Numbers and
+ <xs:documentation>(measure group) contains a group of dimensional specifications which relate to the same object, for example the height and width of a manuscript page. [10.3.4. Dimensions]</xs:documentation>
+ <xs:documentation>contains a symbol, a word or a phrase referring to a unit of measurement in any kind of formal or informal system. [3.5.3. Numbers and
+ <xs:documentation>contains a date in any format. [3.5.4. Dates and Times 2.2.4. Publication, Distribution, Licensing, etc. 2.6. The Revision Description 3.11.2.4. Imprint, Size of a Document, and Reprint Information 15.2.3. The Setting Description 13.3.7. Dates and Times]</xs:documentation>
+ <xs:documentation>(reference) defines a reference to another location, possibly modified by additional text or comment. [3.6. Simple Links and Cross-References 16.1. Links]</xs:documentation>
+ <xs:documentation>each list item is an entry in an index such as the alphabetical topical index at the back of a print volume.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="instructions">
+ <xs:annotation>
+ <xs:documentation>each list item is a step in a sequence of instructions, as in a recipe.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="litany">
+ <xs:annotation>
+ <xs:documentation>each list item is one of a sequence of petitions, supplications or invocations, typically in a religious ritual.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="syllogism">
+ <xs:annotation>
+ <xs:documentation>each list item is part of an argument consisting of two or more propositions and a final conclusion derived from them.</xs:documentation>
+ <xs:documentation>contains any label or heading used to identify part of a text, typically but not exclusively in a list or glossary. [3.7. Lists]</xs:documentation>
+ <xs:documentation>(heading) contains any type of heading, for example the title of a section, or the heading of a list, glossary, manuscript description, etc. [4.2.1. Headings and Trailers]</xs:documentation>
+ <xs:documentation>(heading for list labels) contains the heading for the label or term column in a glossary list or similar structured list. [3.7. Lists]</xs:documentation>
+ <xs:documentation>(heading for list items) contains the heading for the item or gloss column in a glossary list or similar structured list. [3.7. Lists]</xs:documentation>
+ <xs:documentation>contains a note or annotation. [3.8.1. Notes and Simple Annotation 2.2.6. The Notes Statement 3.11.2.8. Notes and Statement of Language 9.3.5.4. Notes within Entries]</xs:documentation>
+ <xs:documentation>indicates whether the copy text shows the exact place of reference for the note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="targetEnd">
+ <xs:annotation>
+ <xs:documentation>points to the end of the span to which the note is attached, if the note is not embedded in the text at that point.</xs:documentation>
+ <xs:documentation>a single word which follows the rules defining a legal XML name (see ), supplying a name to specify which index (of several) the index entry belongs to.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="media">
+ <xs:annotation>
+ <xs:documentation>indicates the location of any form of external media such as an audio or video clip etc. [3.9. Graphics and Other Non-textual Components]</xs:documentation>
+ <xs:documentation>indicates the location of a graphic or illustration, either forming part of a text, or providing an image of it. [3.9. Graphics and Other Non-textual Components 11.1. Digital Facsimiles]</xs:documentation>
+ <xs:documentation>provides encoded binary data representing an inline graphic, audio, video or other object. [3.9. Graphics and Other Non-textual Components]</xs:documentation>
+ <xs:documentation>marks a boundary point separating any kind of section of a text, typically but not necessarily indicating a point at which some part of a standard reference system changes, where the change is not represented by a structural element. [3.10.3. Milestone
+ <xs:documentation>(analytic level) contains bibliographic elements describing an item (e.g. an article or poem) published within a monograph or journal and not as an independent publication. [3.11.2.1. Analytic, Monographic, and Series Levels]</xs:documentation>
+ <xs:documentation>(monographic level) contains bibliographic elements describing an item (e.g. a book or journal) published as an independent item (i.e. as a separate physical object). [3.11.2.1. Analytic, Monographic, and Series Levels]</xs:documentation>
+ <xs:documentation>(series information) contains information about the series in which a book or other bibliographic item has appeared. [3.11.2.1. Analytic, Monographic, and Series Levels]</xs:documentation>
+ <xs:documentation>in a bibliographic reference, contains the name(s) of an author, personal or corporate, of a work; for example in the same form as that provided by a recognized bibliographic name authority. [3.11.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement]</xs:documentation>
+ <xs:documentation>contains a secondary statement of responsibility for a bibliographic item, for example the name of an individual, institution or organization, (or of several such) acting as editor, compiler, translator, etc. [3.11.2.2. Titles, Authors, and Editors]</xs:documentation>
+ <xs:documentation>(statement of responsibility) supplies a statement of responsibility for the intellectual content of a text, edition, recording, or series, where the specialized elements for authors, editors, etc. do not suffice or do not apply. May also be used to encode information about individuals or organizations which have played a role in the production or distribution of a bibliographic work. [3.11.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement 2.2.2. The Edition Statement 2.2.5. The Series Statement]</xs:documentation>
+ <xs:documentation>(responsibility) contains a phrase describing the nature of a person's intellectual responsibility, or an organization's role in the production or distribution of a work. [3.11.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement 2.2.2. The Edition Statement 2.2.5. The Series Statement]</xs:documentation>
+ <xs:documentation>contains a title for any kind of work. [3.11.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement 2.2.5. The Series Statement]</xs:documentation>
+ <xs:documentation>indicates the bibliographic level for a title, that is, whether it identifies an article, book, journal, series, or unpublished material.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="a">
+ <xs:annotation>
+ <xs:documentation>(analytic) the title applies to an analytic item, such as an article, poem, or other work published as part of a larger item.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="m">
+ <xs:annotation>
+ <xs:documentation>(monographic) the title applies to a monograph such as a book or other item considered to be a distinct publication, including single volumes of multi-volume works</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="j">
+ <xs:annotation>
+ <xs:documentation>(journal) the title applies to any serial or periodical publication such as a journal, magazine, or newspaper</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="s">
+ <xs:annotation>
+ <xs:documentation>(series) the title applies to a series of otherwise distinct publications such as a collection</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="u">
+ <xs:annotation>
+ <xs:documentation>(unpublished) the title applies to any unpublished material (including theses and dissertations unless published by a commercial press)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="meeting">
+ <xs:annotation>
+ <xs:documentation>contains the formalized descriptive title for a meeting or conference, for use in a bibliographic description for an item derived from such a meeting, or as a heading or preamble to publications emanating from it. [3.11.2.2. Titles, Authors, and Editors]</xs:documentation>
+ <xs:documentation>groups information relating to the publication or distribution of a bibliographic item. [3.11.2.4. Imprint, Size of a Document, and Reprint Information]</xs:documentation>
+ <xs:documentation>provides the name of the organization responsible for the publication or distribution of a bibliographic item. [3.11.2.4. Imprint, Size of a Document, and Reprint Information 2.2.4. Publication, Distribution, Licensing, etc.]</xs:documentation>
+ <xs:documentation>(scope of bibliographic reference) defines the scope of a bibliographic reference, for example as a list of page numbers, or a named subdivision of a larger work. [3.11.2.5. Scopes and Ranges in Bibliographic Citations]</xs:documentation>
+ <xs:documentation>(cited range) defines the range of cited content, often represented by pages or other units [3.11.2.5. Scopes and Ranges in Bibliographic Citations]</xs:documentation>
+ <xs:documentation>(publication place) contains the name of the place where a bibliographic item was published. [3.11.2.4. Imprint, Size of a Document, and Reprint Information]</xs:documentation>
+ <xs:documentation>(bibliographic citation) contains a loosely-structured bibliographic citation of which the sub-components may or may not be explicitly tagged. [3.11.1. Methods of Encoding Bibliographic References and Lists of References 2.2.7. The Source Description 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>(structured bibliographic citation) contains a structured bibliographic citation, in which only bibliographic sub-elements appear and in a specified order. [3.11.1. Methods of Encoding Bibliographic References and Lists of References 2.2.7. The Source Description 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>(citation list) contains a list of bibliographic citations of any kind. [3.11.1. Methods of Encoding Bibliographic References and Lists of References 2.2.7. The Source Description 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>contains or references some other bibliographic item which is related to the present one in some specified manner, for example as a constituent or alternative version of it. [3.11.2.7. Related Items]</xs:documentation>
+ <xs:documentation>points to the related bibliographic element by means of an absolute or relative URI reference</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="l">
+ <xs:annotation>
+ <xs:documentation>(verse line) contains a single, possibly incomplete, line of verse. [3.12.1. Core Tags for Verse 3.12. Passages of Verse or Drama 7.2.5. Speech Contents]</xs:documentation>
+ <xs:documentation>(line group) contains one or more verse lines functioning as a formal unit, e.g. a stanza, refrain, verse paragraph, etc. [3.12.1. Core Tags for Verse 3.12. Passages of Verse or Drama 7.2.5. Speech Contents]</xs:documentation>
+ <xs:documentation>(speech) contains an individual speech in a performance text, or a passage presented as such in a prose or verse text. [3.12.2. Core Tags for Drama 3.12. Passages of Verse or Drama 7.2.2. Speeches and Speakers]</xs:documentation>
+ <xs:documentation>contains a specialized form of heading or label, giving the name of one or more speakers in a dramatic text or fragment. [3.12.2. Core Tags for Drama]</xs:documentation>
+ <xs:documentation>(stage direction) contains any kind of stage direction within a dramatic text or fragment. [3.12.2. Core Tags for Drama 3.12. Passages of Verse or Drama 7.2.4. Stage Directions]</xs:documentation>
+ <xs:documentation>(automatically generated text division) indicates the location at which a textual division generated automatically by a text-processing application is to appear. [3.8.2. Index Entries]</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="textLang">
+ <xs:annotation>
+ <xs:documentation>(text language) describes the languages and writing systems identified within the bibliographic work being described, rather than its description. [3.11.2.4. Imprint, Size of a Document, and Reprint Information 10.6.6. Languages and Writing Systems]</xs:documentation>
+ <xs:documentation>(TEI header) supplies descriptive and declarative metadata associated with a digital resource or set of resources. [2.1.1. The TEI Header and Its Components 15.1. Varieties of Composite Text]</xs:documentation>
+ <xs:documentation>(file description) contains a full bibliographic description of an electronic file. [2.2. The File Description 2.1.1. The TEI Header and Its Components]</xs:documentation>
+ <xs:documentation>(title statement) groups information about the title of a work and those responsible for its content. [2.2.1. The Title Statement 2.2. The File Description]</xs:documentation>
+ <xs:documentation>(funding body) specifies the name of an individual, institution, or organization responsible for the funding of a project or text. [2.2.1. The Title Statement]</xs:documentation>
+ <xs:documentation>(principal researcher) supplies the name of the principal researcher responsible for the creation of an electronic text. [2.2.1. The Title Statement]</xs:documentation>
+ <xs:documentation>(edition statement) groups information relating to one edition of a text. [2.2.2. The Edition Statement 2.2. The File Description]</xs:documentation>
+ <xs:documentation>describes the approximate size of a text stored on some carrier medium or of some other object, digital or non-digital, specified in any convenient units. [2.2.3. Type and Extent of File 2.2. The File Description 3.11.2.4. Imprint, Size of a Document, and Reprint Information 10.7.1. Object Description]</xs:documentation>
+ <xs:documentation>(publication statement) groups information concerning the publication or distribution of an electronic or other text. [2.2.4. Publication, Distribution, Licensing, etc. 2.2. The File Description]</xs:documentation>
+ <xs:documentation>supplies the name of a person or other agency responsible for the distribution of a text. [2.2.4. Publication, Distribution, Licensing, etc.]</xs:documentation>
+ <xs:documentation>(release authority) supplies the name of a person or other agency responsible for making a work available, other than a publisher or distributor. [2.2.4. Publication, Distribution, Licensing, etc.]</xs:documentation>
+ <xs:documentation>(identifier) supplies any form of identifier used to identify some object, such as a bibliographic item, a person, a title, an organization, etc. in a standardized way. [13.3.1. Basic Principles 2.2.4. Publication, Distribution, Licensing, etc. 2.2.5. The Series Statement 3.11.2.4. Imprint, Size of a Document, and Reprint Information]</xs:documentation>
+ <xs:documentation>International Standard Serial Number: an eight-digit number to uniquely identify a serial publication.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="DOI">
+ <xs:annotation>
+ <xs:documentation>Digital Object Identifier: a unique string of letters and numbers assigned to an electronic document.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="URI">
+ <xs:annotation>
+ <xs:documentation>Uniform Resource Identifier: a string of characters to uniquely identify a resource which usually contains indication of the means of accessing that resource, the name of its host, and its filepath.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="VIAF">
+ <xs:annotation>
+ <xs:documentation>A data number in the Virtual Internet Authority File assigned to link different names in catalogs around the world for the same entity.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="ESTC">
+ <xs:annotation>
+ <xs:documentation>English Short-Title Catalogue number: an identifying number assigned to a document in English printed in the British Isles or North America before 1801.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="OCLC">
+ <xs:annotation>
+ <xs:documentation>OCLC control number (record number) for the union catalog record in WorldCat, a union catalog for member libraries in the Online Computer Library Center global cooperative.</xs:documentation>
+ <xs:documentation>supplies information about the availability of a text, for example any restrictions on its use or distribution, its copyright status, any licence applying to it, etc. [2.2.4. Publication, Distribution, Licensing, etc.]</xs:documentation>
+ <xs:documentation>contains information about a licence or other legal agreement applicable to the text. [2.2.4. Publication, Distribution, Licensing, etc.]</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="seriesStmt">
+ <xs:annotation>
+ <xs:documentation>(series statement) groups information about the series, if any, to which a publication belongs. [2.2.5. The Series Statement 2.2. The File Description]</xs:documentation>
+ <xs:documentation>(notes statement) collects together any notes providing information about a text additional to that recorded in other parts of the bibliographic description. [2.2.6. The Notes Statement 2.2. The File Description]</xs:documentation>
+ <xs:documentation>(source description) describes the source from which an electronic text was derived or generated, typically a bibliographic description in the case of a digitized text, or a phrase such as "born digital" for a text which has no previous existence. [2.2.7. The Source Description]</xs:documentation>
+ <xs:documentation>(fully-structured bibliographic citation) contains a fully-structured bibliographic citation, in which all components of the TEI file description are present. [3.11.1. Methods of Encoding Bibliographic References and Lists of References 2.2. The File Description 2.2.7. The Source Description 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>(encoding description) documents the relationship between an electronic text and the source or sources from which it was derived. [2.3. The Encoding Description 2.1.1. The TEI Header and Its Components]</xs:documentation>
+ <xs:documentation>(schema reference) describes or points to a related customization or schema file [2.3.10. The Schema Specification]</xs:documentation>
+ <xs:documentation>(project description) describes in detail the aim or purpose for which an electronic file was encoded, together with any other relevant information concerning the process by which it was assembled or collected. [2.3.1. The Project Description 2.3. The Encoding Description 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>(sampling declaration) contains a prose description of the rationale and methods used in sampling texts in the creation of a corpus or collection. [2.3.2. The Sampling Declaration 2.3. The Encoding Description 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>(editorial practice declaration) provides details of editorial principles and practices applied during the encoding of a text. [2.3.3. The Editorial Practices Declaration 2.3. The Encoding Description 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>(correction principles) states how and under what circumstances corrections have been made in the text. [2.3.3. The Editorial Practices Declaration 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>indicates the extent of normalization or regularization of the original source carried out in converting it to electronic form. [2.3.3. The Editorial Practices Declaration 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>specifies editorial practice adopted with respect to quotation marks in the original. [2.3.3. The Editorial Practices Declaration 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>summarizes the way in which hyphenation in a source text has been treated in an encoded version of it. [2.3.3. The Editorial Practices Declaration 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>describes the principles according to which the text has been segmented, for example into sentences, tone-units, graphemic strata, etc. [2.3.3. The Editorial Practices Declaration 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>(standard values) specifies the format used when standardized date or number values are supplied. [2.3.3. The Editorial Practices Declaration 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>describes the scope of any analytic or interpretive information added to the text in addition to the transcription. [2.3.3. The Editorial Practices Declaration]</xs:documentation>
+ <xs:documentation>specifies editorial practice adopted with respect to punctuation marks in the original. [2.3.3. The Editorial Practices Declaration 3.2. Treatment of Punctuation]</xs:documentation>
+ <xs:documentation>indicates whether or not punctation marks have been retained as content within the text.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="none">
+ <xs:annotation>
+ <xs:documentation>no punctuation marks have been retained</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="some">
+ <xs:annotation>
+ <xs:documentation>some punctuation marks have been retained</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="all">
+ <xs:annotation>
+ <xs:documentation>all punctuation marks have been retained</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="placement">
+ <xs:annotation>
+ <xs:documentation>indicates the positioning of punctuation marks that are associated with marked up text as being encoded within the element surrounding the text or immediately before or after it.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="internal">
+ <xs:annotation>
+ <xs:documentation>punctuation marks found at the start or end of a marked up text component are included within its surrounding element;</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="external">
+ <xs:annotation>
+ <xs:documentation>punctuation marks found at the start or end of a marked up text component appear immediately before or after the surrounding element</xs:documentation>
+ <xs:documentation>(tagging declaration) provides detailed information about the tagging applied to a document. [2.3.4. The Tagging Declaration 2.3. The Encoding Description]</xs:documentation>
+ <xs:documentation>supplies the formal name of the namespace to which the elements documented by its children belong. [2.3.4. The Tagging Declaration]</xs:documentation>
+ <xs:documentation>specifies the full formal name of the namespace concerned.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="rendition">
+ <xs:annotation>
+ <xs:documentation>supplies information about the rendition or appearance of one or more elements in the source text. [2.3.4. The Tagging Declaration]</xs:documentation>
+ <xs:documentation>where CSS is used, provides a way of defining pseudo-elements, that is, styling rules applicable to specific sub-portions of an element.
+ <xs:documentation>(style definition language declaration) specifies the name of the formal language in which style or renditional information is supplied elsewhere in the document. The specific version of the scheme may also be supplied. [2.3.5. The Default Style Definition Language Declaration]</xs:documentation>
+ <xs:documentation>(references declaration) specifies how canonical references are constructed for this text. [2.3.6.3. Milestone Method 2.3. The Encoding Description 2.3.6. The Reference System Declaration]</xs:documentation>
+ <xs:documentation>(canonical reference pattern) specifies an expression and replacement pattern for transforming a canonical reference into a URI. [2.3.6.3. Milestone Method 2.3.6. The Reference System Declaration 2.3.6.2. Search-and-Replace Method]</xs:documentation>
+ <xs:documentation>(prefix definition) defines a prefixing scheme used in data.pointer values, showing how abbreviated URIs using the scheme may be expanded into full URIs. [16.2.3. Using Abbreviated Pointers]</xs:documentation>
+ <xs:documentation>supplies a name which functions as the prefix for an abbreviated pointing scheme such as a private URI scheme. The prefix constitutes the text preceding the first colon.</xs:documentation>
+ <xs:documentation>(list of prefix definitions) contains a list of definitions of prefixing schemes used in data.pointer values, showing how abbreviated URIs using each scheme may be expanded into full URIs. [16.2.3. Using Abbreviated Pointers]</xs:documentation>
+ <xs:documentation>(reference state) specifies one component of a canonical reference defined by the milestone method. [2.3.6.3. Milestone Method 2.3.6. The Reference System Declaration]</xs:documentation>
+ <xs:documentation>(classification declarations) contains one or more taxonomies defining any classificatory codes used elsewhere in the text. [2.3.7. The Classification Declaration 2.3. The Encoding Description]</xs:documentation>
+ <xs:documentation>defines a typology either implicitly, by means of a bibliographic citation, or explicitly by a structured taxonomy. [2.3.7. The Classification Declaration]</xs:documentation>
+ <xs:documentation>contains an individual descriptive category, possibly nested within a superordinate category, within a user-defined taxonomy. [2.3.7. The Classification Declaration]</xs:documentation>
+ <xs:documentation>(World Geodetic System) a pair of numbers to be interpreted as latitude followed by longitude according to the World Geodetic System.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="MGRS">
+ <xs:annotation>
+ <xs:documentation>(Military Grid Reference System) the values supplied are geospatial entity object codes, based on</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="OSGB36">
+ <xs:annotation>
+ <xs:documentation>(ordnance survey great britain) the value supplied is to be interpreted as a British National Grid Reference.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="ED50">
+ <xs:annotation>
+ <xs:documentation>(European Datum coordinate system) the value supplied is to be interpreted as latitude followed by longitude according to the European Datum coordinate system.</xs:documentation>
+ <xs:documentation>(unit declarations) provides information about units of measurement that are not members of the International System of Units. [2.3.9. The Unit Declaration]</xs:documentation>
+ <xs:documentation>(unit definition) contains descriptive information related to a specific unit of measurement. [2.3.9. The Unit Declaration]</xs:documentation>
+ <xs:documentation>(application information) records information about an application which has edited the TEI file. [2.3.11. The Application Information Element]</xs:documentation>
+ <xs:documentation>provides information about an application which has acted upon the document. [2.3.11. The Application Information Element]</xs:documentation>
+ <xs:documentation>(text-profile description) provides a detailed description of non-bibliographic aspects of a text, specifically the languages and sublanguages used, the situation in which it was produced, the participants and their setting. [2.4. The Profile Description 2.1.1. The TEI Header and Its Components]</xs:documentation>
+ <xs:documentation>contains a summary or formal abstract prefixed to an existing source document by the encoder. [2.4.4. Abstracts]</xs:documentation>
+ <xs:documentation>(language usage) describes the languages, sublanguages, registers, dialects, etc. represented within a text. [2.4.2. Language Usage 2.4. The Profile Description 15.3.2. Declarable Elements]</xs:documentation>
+ <xs:documentation>(text classification) groups information which describes the nature or topic of a text in terms of a standard classification scheme, thesaurus, etc. [2.4.3. The Text Classification]</xs:documentation>
+ <xs:documentation>contains a list of keywords or phrases identifying the topic or nature of a text. [2.4.3. The Text Classification]</xs:documentation>
+ <xs:documentation>(classification code) contains the classification code used for this text in some standard classification system. [2.4.3. The Text Classification]</xs:documentation>
+ <xs:documentation>(category reference) specifies one or more defined categories within some taxonomy or text typology. [2.4.3. The Text Classification]</xs:documentation>
+ <xs:documentation>(calendar description) contains a description of the calendar system used in any dating expression found in the text. [2.4. The Profile Description 2.4.5. Calendar Description]</xs:documentation>
+ <xs:documentation>(correspondence action) contains a structured description of the place, the name of a person/organization and the date related to the sending/receiving of a message or any other action related to the correspondence. [2.4.6. Correspondence Description]</xs:documentation>
+ <xs:documentation>information concerning the sending or dispatch of a message.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="received">
+ <xs:annotation>
+ <xs:documentation>information concerning the receipt of a message.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="transmitted">
+ <xs:annotation>
+ <xs:documentation>information concerning the transmission of a message, i.e. between the dispatch and the next receipt, redirect or forwarding.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="redirected">
+ <xs:annotation>
+ <xs:documentation>information concerning the redirection of an unread message.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="forwarded">
+ <xs:annotation>
+ <xs:documentation>information concerning the forwarding of a message.</xs:documentation>
+ <xs:documentation>(correspondence context) provides references to preceding or following correspondence related to this piece of correspondence. [2.4.6. Correspondence Description]</xs:documentation>
+ <xs:documentation>(non-TEI metadata) provides a container element into which metadata in non-TEI formats may be placed. [2.5. Non-TEI Metadata]</xs:documentation>
+ <xs:documentation>(revision description) summarizes the revision history for a file. [2.6. The Revision Description 2.1.1. The TEI Header and Its Components]</xs:documentation>
+ <xs:documentation>documents a change or set of changes made during the production of a source document, or during the revision of an electronic file. [2.6. The Revision Description 2.4.1. Creation 11.7. Identifying Changes and Revisions]</xs:documentation>
+ <xs:documentation>points to one or more elements that belong to this change.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction>
+ <xs:simpleType>
+ <xs:list itemType="xs:anyURI"/>
+ </xs:simpleType>
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="listChange">
+ <xs:annotation>
+ <xs:documentation>groups a number of change descriptions associated with either the creation of a source text or the revision of an encoded text. [2.6. The Revision Description 11.7. Identifying Changes and Revisions]</xs:documentation>
+ <xs:documentation>(character or glyph) represents a glyph, or a non-standard character. [5. Characters, Glyphs, and Writing Modes]</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="char">
+ <xs:annotation>
+ <xs:documentation>(character) provides descriptive information about a character. [5.2. Markup Constructs for Representation of Characters and Glyphs]</xs:documentation>
+ <xs:documentation>(character name) contains the name of a character, expressed following Unicode conventions. [5.2. Markup Constructs for Representation of Characters and Glyphs]</xs:documentation>
+ <xs:documentation>(character property) provides a name and value for some property of the parent character or glyph. [5.2. Markup Constructs for Representation of Characters and Glyphs]</xs:documentation>
+ <xs:documentation>(character declarations) provides information about nonstandard characters and glyphs. [5.2. Markup Constructs for Representation of Characters and Glyphs]</xs:documentation>
+ <xs:documentation>(character glyph) provides descriptive information about a character glyph. [5.2. Markup Constructs for Representation of Characters and Glyphs]</xs:documentation>
+ <xs:documentation>(character glyph name) contains the name of a glyph, expressed following Unicode conventions for character names. [5.2. Markup Constructs for Representation of Characters and Glyphs]</xs:documentation>
+ <xs:documentation>(locally-defined property name) contains a locally defined name for some property. [5.2.1. Character Properties]</xs:documentation>
+ <xs:documentation>(unicode property name) contains the name of a registered Unicode normative or informative property. [5.2.1. Character Properties]</xs:documentation>
+ <xs:documentation>contains a single text of any kind, whether unitary or composite, for example a poem or drama, a collection of essays, a novel, a dictionary, or a corpus sample. [4. Default Text Structure 15.1. Varieties of Composite Text]</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="body">
+ <xs:annotation>
+ <xs:documentation>(text body) contains the whole body of a single unitary text, excluding any front or back matter. [4. Default Text Structure]</xs:documentation>
+ <xs:documentation>contains the body of a composite text, grouping together a sequence of distinct texts (or groups of such texts) which are regarded as a unit for some purpose, for example the collected works of an author, a sequence of prose essays, etc. [4. Default Text Structure 4.3.1. Grouped Texts 15.1. Varieties of Composite Text]</xs:documentation>
+ <xs:documentation>contains a single text of any kind, whether unitary or composite, which interrupts the text containing it at any point and after which the surrounding text resumes. [4.3.2. Floating Texts]</xs:documentation>
+ <xs:documentation>(level-1 text division) contains a first-level subdivision of the front, body, or back of a text. [4.1.2. Numbered Divisions]</xs:documentation>
+ <xs:documentation>(level-2 text division) contains a second-level subdivision of the front, body, or back of a text. [4.1.2. Numbered Divisions]</xs:documentation>
+ <xs:documentation>(level-3 text division) contains a third-level subdivision of the front, body, or back of a text. [4.1.2. Numbered Divisions]</xs:documentation>
+ <xs:documentation>(level-4 text division) contains a fourth-level subdivision of the front, body, or back of a text. [4.1.2. Numbered Divisions]</xs:documentation>
+ <xs:documentation>(level-5 text division) contains a fifth-level subdivision of the front, body, or back of a text. [4.1.2. Numbered Divisions]</xs:documentation>
+ <xs:documentation>(level-6 text division) contains a sixth-level subdivision of the front, body, or back of a text. [4.1.2. Numbered Divisions]</xs:documentation>
+ <xs:documentation>(level-7 text division) contains the smallest possible subdivision of the front, body or back of a text, larger than a paragraph. [4.1.2. Numbered Divisions]</xs:documentation>
+ <xs:documentation>contains a closing title or footer appearing at the end of a division of a text. [4.2.4. Content of Textual Divisions 4.2. Elements Common to All Divisions]</xs:documentation>
+ <xs:documentation>contains the primary statement of responsibility given for a work on its title page or at the head or end of the work. [4.2.2. Openers and Closers 4.5. Front Matter]</xs:documentation>
+ <xs:documentation>contains a brief description of the place, date, time, etc. of production of a letter, newspaper story, or other work, prefixed or suffixed to it as a kind of heading or trailer. [4.2.2. Openers and Closers]</xs:documentation>
+ <xs:documentation>contains a formal list or prose description of the topics addressed by a subdivision of a text. [4.2. Elements Common to All Divisions 4.6. Title Pages]</xs:documentation>
+ <xs:documentation>contains a quotation, anonymous or attributed, appearing at the start or end of a section or on a title page. [4.2.3. Arguments, Epigraphs, and Postscripts 4.2. Elements Common to All Divisions 4.6. Title Pages]</xs:documentation>
+ <xs:documentation>groups together dateline, byline, salutation, and similar phrases appearing as a preliminary group at the start of a division, especially of a letter. [4.2. Elements Common to All Divisions]</xs:documentation>
+ <xs:documentation>groups together salutations, datelines, and similar phrases appearing as a final group at the end of a division, especially of a letter. [4.2.2. Openers and Closers 4.2. Elements Common to All Divisions]</xs:documentation>
+ <xs:documentation>(salutation) contains a salutation or greeting prefixed to a foreword, dedicatory epistle, or other division of a text, or the salutation in the closing of a letter, preface, etc. [4.2.2. Openers and Closers]</xs:documentation>
+ <xs:documentation>(signature) contains the closing salutation, etc., appended to a foreword, dedicatory epistle, or other division of a text. [4.2.2. Openers and Closers]</xs:documentation>
+ <xs:documentation>(document title) contains the title of a document, including all its constituents, as given on a title page. [4.6. Title Pages]</xs:documentation>
+ <xs:documentation>(document author) contains the name of the author of the document, as given on the title page (often but not always contained in a byline). [4.6. Title Pages]</xs:documentation>
+ <xs:documentation>contains a formal statement authorizing the publication of a work, sometimes required to appear on a title page or its verso. [4.6. Title Pages]</xs:documentation>
+ <xs:documentation>(document imprint) contains the imprint statement (place and date of publication, publisher name), as given (usually) at the foot of a title page. [4.6. Title Pages]</xs:documentation>
+ <xs:documentation>(front matter) contains any prefatory matter (headers, abstracts, title page, prefaces, dedications, etc.) found at the start of a document, before the main body. [4.6. Title Pages 4. Default Text Structure]</xs:documentation>
+ <xs:documentation>(back matter) contains any appendixes, etc. following the main part of a text. [4.7. Back Matter 4. Default Text Structure]</xs:documentation>
+ <xs:documentation>(example) contains any kind of illustrative example. [22.5. Element Specifications 22.5.3. Attribute List Specification]</xs:documentation>
+ <xs:documentation>(element name) contains the name (generic identifier) of an element. [22. Documentation Elements 22.5. Element Specifications]</xs:documentation>
+ <xs:documentation>contains text of a complete start- or end-tag, possibly including attribute specifications, but excluding the opening and closing markup delimiter characters. [22. Documentation Elements]</xs:documentation>
+ <xs:documentation>(specification list) marks where a list of descriptions is to be inserted into the prose documentation. [22.1.2. Element and Attribute Descriptions]</xs:documentation>
+ <xs:documentation>(specification description) indicates that a description of the specified element or class should be included at this point within a document. [22.1.2. Element and Attribute Descriptions]</xs:documentation>
+ <xs:documentation>(identifier) supplies the identifier of the documentary element or class for which a description is to be obtained.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="atts">
+ <xs:annotation>
+ <xs:documentation>(attributes) supplies attribute names for which descriptions should additionally be obtained.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:list itemType="xs:Name"/>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="classRef">
+ <xs:annotation>
+ <xs:documentation>points to the specification for an attribute or model class which is to be included in a schema [22.6. Class Specifications]</xs:documentation>
+ <xs:documentation>specifies a default prefix which will be prepended to all patterns from the imported module</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="include">
+ <xs:annotation>
+ <xs:documentation>supplies a list of the elements which are to be copied from the specified module into the schema being defined.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:list itemType="xs:NCName"/>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="except">
+ <xs:annotation>
+ <xs:documentation>supplies a list of the elements which are not to be copied from the specified module into the schema being defined.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:list itemType="xs:NCName"/>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="key" type="xs:NCName">
+ <xs:annotation>
+ <xs:documentation>the name of a TEI module</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="url" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>(uniform resource locator) refers to a non-TEI module of RELAX NG code by external location</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="moduleSpec">
+ <xs:annotation>
+ <xs:documentation>(module specification) documents the structure, content, and purpose of a single module, i.e. a named and externally visible group of declarations. [22.2. Modules and Schemas]</xs:documentation>
+ <xs:documentation>(schema specification) generates a TEI-conformant schema and documentation for it. [2.3. The Encoding Description 22.2. Modules and Schemas 23.5.1. Making a Unified ODD]</xs:documentation>
+ <xs:documentation>specifies entry points to the schema, i.e. which patterns may be used as the root of documents conforming to it.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction>
+ <xs:simpleType>
+ <xs:list itemType="xs:Name"/>
+ </xs:simpleType>
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="prefix" type="xs:NCName">
+ <xs:annotation>
+ <xs:documentation>specifies a default prefix which will be prepended to all patterns relating to TEI elements, unless otherwise stated.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="targetLang">
+ <xs:annotation>
+ <xs:documentation>(target language) specifies which language to use when creating the objects in a schema if names for elements or attributes are available in more than one language</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:language">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="">
+ <xs:annotation>
+ <xs:documentation/>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="docLang">
+ <xs:annotation>
+ <xs:documentation>(documentation language) specifies which languages to use when creating documentation if the description for an element, attribute, class or macro is available in more than one language</xs:documentation>
+ <xs:documentation>(default namespace exclusions) provides a list of namespaces and/or prefixed element names to be excluded by default from anyName in RELAX NG schemas</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction>
+ <xs:simpleType>
+ <xs:list>
+ <xs:simpleType>
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:anyURI">
+ <xs:pattern value="[^/]+:.*"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:Name">
+ <xs:pattern value=".+:.+"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:list>
+ </xs:simpleType>
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="specGrp">
+ <xs:annotation>
+ <xs:documentation>(specification group) contains any convenient grouping of specifications for use within the current module. [22.2. Modules and Schemas]</xs:documentation>
+ <xs:documentation>points at the specification group which logically belongs here.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="elementSpec">
+ <xs:annotation>
+ <xs:documentation>(element specification) documents the structure, content, and purpose of a single element type. [22.5. Element Specifications 22. Documentation Elements]</xs:documentation>
+ <xs:documentation>specifies a default prefix which will be prepended to all patterns relating to the element, unless otherwise stated.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="classSpec">
+ <xs:annotation>
+ <xs:documentation>(class specification) contains reference information for a TEI element class; that is a group of elements which appear together in content models, or which share some common attribute, or both. [22.3. Specification Elements 22.6. Class Specifications]</xs:documentation>
+ <xs:documentation>indicates whether this is a model class or an attribute class</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="model">
+ <xs:annotation>
+ <xs:documentation>(content model) members of this class appear in the same content models</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="atts">
+ <xs:annotation>
+ <xs:documentation>(attributes) members of this class share common attributes</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="generate">
+ <xs:annotation>
+ <xs:documentation>indicates which alternation and sequence instantiations of a model class may be referenced. By default, all variations are permitted.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction>
+ <xs:simpleType>
+ <xs:list>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="alternation">
+ <xs:annotation>
+ <xs:documentation>members of the class are alternatives</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="sequence">
+ <xs:annotation>
+ <xs:documentation>members of the class are to be provided in sequence</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="sequenceOptional">
+ <xs:annotation>
+ <xs:documentation>members of the class may be provided, in sequence, but are optional</xs:documentation>
+ <xs:documentation>(macro specification) documents the function and implementation of a pattern. [22.3. Specification Elements 22.7. Macro Specifications]</xs:documentation>
+ <xs:documentation>contains any commentary or discussion about the usage of an element, attribute, class, or entity not otherwise documented within the containing element. [22.5. Element Specifications 22.5.3. Attribute List Specification 22.6. Class Specifications 22.7. Macro Specifications]</xs:documentation>
+ <xs:documentation>(list of references) supplies a list of significant references to places where this element is discussed, in the current document or elsewhere.</xs:documentation>
+ <xs:documentation>groups an example demonstrating the use of an element along with optional paragraphs of commentary. [22.5. Element Specifications]</xs:documentation>
+ <xs:documentation>specifies all the classes of which the documented element or class is a member or subclass. [22.5. Element Specifications 22.6. Class Specifications]</xs:documentation>
+ <xs:documentation>specifies the identifier for a class of which the documented element or class is a member or subclass</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="mode" default="add">
+ <xs:annotation>
+ <xs:documentation>specifies the effect of this declaration on its parent module.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="add">
+ <xs:annotation>
+ <xs:documentation>this declaration is added to the current definitions</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="delete">
+ <xs:annotation>
+ <xs:documentation>this declaration and all of its children are removed from the current setup</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="max">
+ <xs:annotation>
+ <xs:documentation>supplies the maximum number of times the element can occur in elements which use this model class in their content model</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:double xs:decimal">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:pattern value="(\-?[\d]+/\-?[\d]+)"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="min">
+ <xs:annotation>
+ <xs:documentation>supplies the minumum number of times the element must occur in elements which use this model class in their content model</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:double xs:decimal">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:pattern value="(\-?[\d]+/\-?[\d]+)"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="equiv">
+ <xs:annotation>
+ <xs:documentation>(equivalent) specifies a component which is considered equivalent to the parent element, either by co-reference, or by external link. [3.3.4. Terms, Glosses, Equivalents, and Descriptions 22.4.1. Description of Components]</xs:documentation>
+ <xs:documentation>a single word which follows the rules defining a legal XML name (see ), naming the underlying concept of which the parent is a representation.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="uri" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>(uniform resource identifier) references the underlying concept of which the parent is a representation by means of some external identifier</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="filter" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>references an external script which contains a method to transform instances of this element to canonical TEI</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="altIdent">
+ <xs:annotation>
+ <xs:documentation>(alternate identifier) supplies the recommended XML name for an element, class, attribute, etc. in some language. [3.3.4. Terms, Glosses, Equivalents, and Descriptions 22.4.1. Description of Components]</xs:documentation>
+ <xs:documentation>support display of alternative visualisations, for example by displaying the preferred content, by displaying both in parallel, or by toggling between the two.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="anchor">
+ <xs:annotation>
+ <xs:documentation>create an identifiable anchor point in the output.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="block">
+ <xs:annotation>
+ <xs:documentation>create a block structure</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="body">
+ <xs:annotation>
+ <xs:documentation>create the body of a document.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="break">
+ <xs:annotation>
+ <xs:documentation>create a line, column, or page break according to the value of type</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="cell">
+ <xs:annotation>
+ <xs:documentation>create a table cell</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="cit">
+ <xs:annotation>
+ <xs:documentation>show the content, with an indication of the source</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="document">
+ <xs:annotation>
+ <xs:documentation>start a new output document</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="figure">
+ <xs:annotation>
+ <xs:documentation>make a figure with the title as caption</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="glyph">
+ <xs:annotation>
+ <xs:documentation>show a character by looking up reference to a chardesc at the given URI</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="graphic">
+ <xs:annotation>
+ <xs:documentation>if url is present, uses it to display graphic, else display a placeholder image.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="heading">
+ <xs:annotation>
+ <xs:documentation>creates a heading. </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="index">
+ <xs:annotation>
+ <xs:documentation>generate list according to type.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="inline">
+ <xs:annotation>
+ <xs:documentation>creates inline element out of content</xs:documentation>
+ <xs:documentation>describes the rendering or appearance intended for all occurrences of an element in a specified context for a specified type of output.</xs:documentation>
+ <xs:documentation>provides a parameter for a model behaviour by supplying its name and an XPath expression identifying the location of its content. [22.5.4.5. Behaviours and their parameters]</xs:documentation>
+ <xs:documentation>when used with behaviour graphic, a parameter of this name supplies a value for the height of the graphic e.g. "300px", "50%".</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="id">
+ <xs:annotation>
+ <xs:documentation>a parameter of this name should supply a unique identifier for the element being processed; as for example with the anchor behaviour</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="label">
+ <xs:annotation>
+ <xs:documentation>a parameter of this name should supply an expression to be used to label something, for example for a page break or for a footnote reference; typically used with the note or break behaviours</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="level">
+ <xs:annotation>
+ <xs:documentation>when used with the heading behaviour, a parameter of this name supplies a positive integer indicating the hierarchic level of a heading.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="link">
+ <xs:annotation>
+ <xs:documentation>when used with the link behaviour, a parameter of this name should supply a URL to be used as the target of a link.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="place">
+ <xs:annotation>
+ <xs:documentation>when used with the note behaviour, a parameter of this name should provide a string which describes the intended placement of some text; typical values include "margin", "footnote", "endnote", "inline", "bottom"</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="type">
+ <xs:annotation>
+ <xs:documentation>a parameter of this name can be used to categorize the specified behaviour in any way; for example the kind of break (when used with the break behaviour) or the kind of index to be generated (if used with the index behaviour) etc.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="url">
+ <xs:annotation>
+ <xs:documentation>when used with behaviour graphic, a parameter of this name supplies a a URL indicating the graphic intended.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="width">
+ <xs:annotation>
+ <xs:documentation>when used with behaviour graphic, a parameter of this name supplies a value for the width of the graphic e.g. "400px", "70%".</xs:documentation>
+ <xs:documentation>supplies an XPath expression which when evaluated provides the value for the parameter</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="content">
+ <xs:annotation>
+ <xs:documentation>(content model) contains a declaration of the intended content model for the element (or other construct) being specified. [22.5. Element Specifications]</xs:documentation>
+ <xs:documentation>controls whether or not pattern names generated in the corresponding RELAX NG schema source are automatically prefixed to avoid potential nameclashes.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="sequence">
+ <xs:annotation>
+ <xs:documentation>indicates that the constructs referenced by its children form a sequence [22.5.1. Defining Content Models]</xs:documentation>
+ <xs:documentation>if true, indicates that the order in which component elements of a sequence appear in a document must correspond to the order in which they are given in the content model.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="alternate">
+ <xs:annotation>
+ <xs:documentation>indicates that the constructs referenced by its children form an alternation [22.5.1. Defining Content Models]</xs:documentation>
+ <xs:documentation>(constraint on schema) contains a formal constraint, typically expressed in a rule-based schema language, to which a construct must conform in order to be considered valid [22.5. Element Specifications]</xs:documentation>
+ <xs:documentation>(organization) specifies whether all the attributes in the list are available (org="group") or only one of them (org="choice")</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="group">
+ <xs:annotation>
+ <xs:documentation>grouped</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="choice">
+ <xs:annotation>
+ <xs:documentation>alternated</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="attDef">
+ <xs:annotation>
+ <xs:documentation>(attribute definition) contains the definition of a single attribute. [22.5.3. Attribute List Specification]</xs:documentation>
+ <xs:documentation>(namespace) specifies the namespace to which this attribute belongs</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="attRef">
+ <xs:annotation>
+ <xs:documentation>(attribute pointer) points to the definition of an attribute or group of attributes. [22.2. Modules and Schemas]</xs:documentation>
+ <xs:documentation>the name of the attribute</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="datatype">
+ <xs:annotation>
+ <xs:documentation>specifies the declared value for an attribute, by referring to any datatype defined by the chosen schema language. [1.4.2. Datatype Specifications 22.5.3. Attribute List Specification]</xs:documentation>
+ <xs:documentation>(minimum number of occurences) indicates the minimum number of times this datatype may occur in the specification of the attribute being defined</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="maxOccurs" default="1">
+ <xs:annotation>
+ <xs:documentation>(maximum number of occurences) indicates the maximum number of times this datatype may occur in the specification of the attribute being defined</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:nonNegativeInteger">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="unbounded">
+ <xs:annotation>
+ <xs:documentation/>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="dataRef">
+ <xs:annotation>
+ <xs:documentation>identifies the datatype of an attribute value, either by referencing an item in an externally defined datatype library, or by pointing to a TEI-defined data specification [22.5.3.1. Datatypes]</xs:documentation>
+ <xs:documentation>supplies a string representing a regular expression providing additional constraints on the strings used to represent values of this datatype</xs:documentation>
+ <xs:documentation>specifies the extensibility of the list of values specified.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="closed">
+ <xs:annotation>
+ <xs:documentation>only the values specified are permitted.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="semi">
+ <xs:annotation>
+ <xs:documentation>(semi-open) all the values specified should be supported, but other values are legal and software should have appropriate fallback processing for them.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="open">
+ <xs:annotation>
+ <xs:documentation>the values specified are sample values only.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="textNode">
+ <xs:annotation>
+ <xs:documentation>indicates the presence of a text node in a content model [22. Documentation Elements]</xs:documentation>
+ <xs:documentation>a main entry (default).</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="hom">
+ <xs:annotation>
+ <xs:documentation>(homograph) groups information relating to one homograph within an entry.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="xref">
+ <xs:annotation>
+ <xs:documentation>(cross reference) a reduced entry whose only function is to point to another main entry (e.g. for forms of an irregular verb or for variant spellings: was pointing to be, or esthete to aesthete).</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="affix">
+ <xs:annotation>
+ <xs:documentation>an entry for a prefix, infix, or suffix.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="abbr">
+ <xs:annotation>
+ <xs:documentation>(abbreviation) an entry for an abbreviation.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="supplemental">
+ <xs:annotation>
+ <xs:documentation>a supplemental entry (for use in dictionaries which issue supplements to their main work in which they include updated information about entries).</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="foreign">
+ <xs:annotation>
+ <xs:documentation>an entry for a foreign word in a monolingual dictionary.</xs:documentation>
+ <xs:documentation>(original) gives the original string or is the empty string when the element does not appear in the source text.</xs:documentation>
+ <xs:documentation>groups a sequence of entries within any kind of lexical resource, such as a dictionary or lexicon which function as a single unit, for example a set of homographs. [9.1. Dictionary Body and Overall Structure]</xs:documentation>
+ <xs:documentation>contains a single structured entry in any kind of lexical resource, such as a dictionary or lexicon. [9.1. Dictionary Body and Overall Structure 9.2. The Structure of Dictionary Entries]</xs:documentation>
+ <xs:documentation>(unstructured entry) contains a single unstructured entry in any kind of lexical resource, such as a dictionary or lexicon. [9.1. Dictionary Body and Overall Structure 9.2. The Structure of Dictionary Entries]</xs:documentation>
+ <xs:documentation>(homograph) groups information relating to one homograph within an entry. [9.2. The Structure of Dictionary Entries]</xs:documentation>
+ <xs:documentation>groups together all information relating to one word sense in a dictionary entry, for example definitions, examples, and translation equivalents. [9.2. The Structure of Dictionary Entries]</xs:documentation>
+ <xs:documentation>gives the nesting depth of this sense.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="dictScrap">
+ <xs:annotation>
+ <xs:documentation>(dictionary scrap) encloses a part of a dictionary entry in which other phrase-level dictionary elements are freely combined. [9.1. Dictionary Body and Overall Structure 9.2. The Structure of Dictionary Entries]</xs:documentation>
+ <xs:documentation>(form information group) groups all the information on the written and spoken forms of one headword. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>(orthographic form) gives the orthographic form of a dictionary headword. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>(hyphenation) contains a hyphenated form of a dictionary headword, or hyphenation information in some other form. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>(syllabification) contains the syllabification of the headword. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>contains the stress pattern for a dictionary headword, if given separately. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>(grammatical information) within an entry in a dictionary or a terminological data file, contains grammatical information relating to a term, word, or form. [9.3.2. Grammatical Information]</xs:documentation>
+ <xs:documentation>(gender) identifies the morphological gender of a lexical item, as given in the dictionary. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>indicates grammatical number associated with a form, as given in a dictionary. [9.3.1. Information on Written and Spoken Forms 9.3.2. Grammatical Information]</xs:documentation>
+ <xs:documentation>contains grammatical case information given by a dictionary for a given form. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>(person) contains an indication of the grammatical person (1st, 2nd, 3rd, etc.) associated with a given inflected form in a dictionary. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>(tense) indicates the grammatical tense associated with a given inflected form in a dictionary. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>contains information about the grammatical mood of verbs (e.g. indicative, subjunctive, imperative). [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>(inflectional class) indicates the inflectional class associated with a lexical item. [9.3.1. Information on Written and Spoken Forms]</xs:documentation>
+ <xs:documentation>indicates the type of indicator used to specify the inflection class, when it is necessary to distinguish between the usual abbreviated indications (e.g. inv) and other kinds of indicators, such as special codes referring to conjugation patterns, etc.
+ <xs:documentation>(part of speech) indicates the part of speech assigned to a dictionary headword such as noun, verb, or adjective. [9.3.2. Grammatical Information]</xs:documentation>
+ <xs:documentation>(collocate) contains any sequence of words that co-occur with the headword with significant frequency. [9.3.2. Grammatical Information]</xs:documentation>
+ <xs:documentation>(language name) contains the name of a language mentioned in etymological or other linguistic discussion. [9.3.4. Etymological Information]</xs:documentation>
+ <xs:documentation>(label) contains a label for a form, example, translation, or other piece of information, e.g. abbreviation for, contraction of, literally, approximately, synonyms:, etc. [9.3.1. Information on Written and Spoken Forms 9.3.3.2. Translation Equivalents 9.3.5.3. Cross-References to Other Entries]</xs:documentation>
+ <xs:documentation>(cross-reference phrase) contains a phrase, sentence, or icon referring the reader to some other location in this or another text. [9.3.5.3. Cross-References to Other Entries]</xs:documentation>
+ <xs:documentation>(related entry) contains a dictionary entry for a lexical item related to the headword, such as a compound phrase or derived form, embedded inside a larger entry. [9.3.6. Related Entries]</xs:documentation>
+ <xs:documentation>(orthographic-form reference) in a dictionary example, indicates a reference to the orthographic form(s) of the headword. [9.4. Headword and Pronunciation References]</xs:documentation>
+ <xs:documentation>(pronunciation reference) in a dictionary example, indicates a reference to the pronunciation(s) of the headword. [9.4. Headword and Pronunciation References]</xs:documentation>
+ <xs:documentation>selects one or more alternants; if one alternant is selected, the ambiguity or uncertainty is marked as resolved. If more than one alternant is selected, the degree of ambiguity or uncertainty is marked as reduced by the number of alternants not selected.</xs:documentation>
+ <xs:documentation>defines an association or hypertextual link among elements or passages, of some type not more precisely specifiable by other elements. [16.1. Links]</xs:documentation>
+ <xs:documentation>(anonymous block) contains any arbitrary component-level unit of text, acting as an anonymous container for phrase or inter level elements analogous to, but without the semantic baggage of, a paragraph. [16.3. Blocks, Segments, and Anchors]</xs:documentation>
+ <xs:documentation>(anchor point) attaches an identifier to a point within a text, whether or not it corresponds with a textual element. [8.4.2. Synchronization and Overlap 16.5. Correspondence and Alignment]</xs:documentation>
+ <xs:documentation>(arbitrary segment) represents any segmentation of text below the chunk level. [16.3. Blocks, Segments, and Anchors 6.2. Components of the Verse Line 7.2.5. Speech Contents]</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="when">
+ <xs:annotation>
+ <xs:documentation>indicates a point in time either relative to other elements in the same timeline tag, or absolutely. [16.4.2. Placing Synchronous Events in Time]</xs:documentation>
+ <xs:documentation>provides a set of ordered points in time which can be linked to elements of a spoken text to create a temporal alignment of that text. [16.4.2. Placing Synchronous Events in Time]</xs:documentation>
+ <xs:documentation>identifies a possibly fragmented segment of text, by pointing at the possibly discontiguous elements which compose it. [16.7. Aggregation]</xs:documentation>
+ <xs:documentation>specifies the name of an element which this aggregation may be understood to represent.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="scope" default="root">
+ <xs:annotation>
+ <xs:documentation>indicates whether the targets to be joined include the entire element indicated (the entire subtree including its root), or just the children of the target (the branches of the subtree).</xs:documentation>
+ <xs:documentation>groups elements representing or containing graphic information such as an illustration, formula, or figure. [14.4. Specific Elements for Graphic Images]</xs:documentation>
+ <xs:documentation>(description of figure) contains a brief prose description of the appearance or content of a graphic figure, for use when documenting an image without displaying it. [14.4. Specific Elements for Graphic Images]</xs:documentation>