{"id":1128,"date":"2021-02-04T14:16:49","date_gmt":"2021-02-04T13:16:49","guid":{"rendered":"http:\/\/thebarumfabula.usc.es\/guidelines\/primeros-pasos\/etiquetas-tei-xml\/los-atributos-xmlid-y-xmllang\/"},"modified":"2021-02-28T14:24:40","modified_gmt":"2021-02-28T13:24:40","slug":"los-atributos-xmlid-y-xmllang","status":"publish","type":"docs","link":"https:\/\/thebarumfabula.usc.es\/en\/guidelines\/primeros-pasos\/etiquetas-tei-xml\/los-atributos-xmlid-y-xmllang\/","title":{"rendered":"xml:id and xml:lang attributes"},"content":{"rendered":"<p>Of interest are the attributes <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">@xml:id<\/code> and <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">@xml:lang<\/code>, which can be added to almost all tags and serve to provide a unique identifier for that element (<em>identification<\/em>) and to define the language in which this tag and all the content it contains is in (<em>language<\/em>).&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">@xml:id<\/h2>\n\n\n\n<p>The <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">@xml:id<\/code> have strict rules for their composition:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>They cannot contain anything other than letters (upper and lower case), numbers, full stop (.), hyphen (-), and underscore (_).<\/li><li>They must begin with a letter.<\/li><li>They should bear the number corresponding to the verse, chapter, language, etc., in order to be meaningful.<\/li><li>If the identifier is to be added not only in the original text but also in the translations, we need to use the abbreviation of the language of the text as the first part of the identifier. For example, <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">@xml:id=\"la.4.236\"<\/code> indicates verse 4.236 of the work that we are tagging, but in its Latin version. The same verse, in the Spanish translation, would carry the identifier <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">@xml:id=\"es.4.236\"<\/code>.<\/li><li>When identifiers are used to mark special tags, they must include, as text, that tag or its abbreviation in the identifier. This distinguishes them from other unique identifiers that may be attached to the same verse or paragraph, which all carry the same number.<\/li><\/ul>\n\n\n\n<p>There are tags that refer to elements previously defined in the document by means of an <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">@xml:id<\/code>. The attribute that indicates them must cite exactly the value of that <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">@xml:id<\/code> preceded by the \u201c#\u201d symbol.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">@xml:lang<\/h2>\n\n\n\n<p>The <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">@xml:lang<\/code>, serve to define the language in which this tag, plus all that which it contains, is in. For example, a <code data-enlighter-language=\"xml\" class=\"EnlighterJSRAW\">&lt;text&gt;<\/code> as\u00ed definido:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;text type=\"translation\" xml:lang=\"es\"> \u2026 Contenidos \u2026 &lt;\/text><\/pre>\n\n\n\n<p>introduces all the translation of our original text, which, in turn, will be identified by:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;text type=\"source\" xml:lang=\"grc\"> \u2026 Contenidos \u2026 &lt;\/text><\/pre>\n\n\n\n<p>The values of the languages that we use in our editions are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Latin: \"la\"<\/li><li>Ancient Greek: \"grc\"<\/li><li>Spanish: \"es\"<\/li><li>English: \"en\"<\/li><li>Italian: \"it\"<\/li><li>German: \"de\"<\/li><li>Modern Greek: \"el\"<\/li><li>French: \"fr\"<\/li><li>Galician: \"gl\"<\/li><li>Basque: \"eu\"<\/li><li>Catalan: \"ca\"<\/li><li>Portuguese: \"pt\"<\/li><\/ul>\n\n\n\n<p>These language abbreviations will also be of use to us for the @xml:id that we will need to assign to the segments in order to <a href=\"http:\/\/thebarumfabula.usc.es\/en\/guidelines\/alineamiento-de-texto-original-y-traducciones\/\" data-type=\"docs\" data-id=\"1165\">align text and translation<\/a>.<\/p>\n\n\n\n<p>For a full list of language abbreviations please consult the official webpage of <a rel=\"noreferrer noopener\" href=\"https:\/\/www.iana.org\/assignments\/language-subtag-registry\/language-subtag-registry\" target=\"_blank\">IANA (Internet Assigned Numbers Authority)<\/a>.<\/p>","protected":false},"featured_media":0,"parent":1080,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1128","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/docs\/1128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/comments?post=1128"}],"version-history":[{"count":11,"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/docs\/1128\/revisions"}],"predecessor-version":[{"id":1999,"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/docs\/1128\/revisions\/1999"}],"up":[{"embeddable":true,"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/docs\/1080"}],"prev":[{"title":"Attributes and Values","link":"https:\/\/thebarumfabula.usc.es\/en\/guidelines\/primeros-pasos\/etiquetas-tei-xml\/atributos-y-valores\/","href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/docs\/1117"}],"wp:attachment":[{"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/media?parent=1128"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/thebarumfabula.usc.es\/en\/wp-json\/wp\/v2\/doc_tag?post=1128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}