Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding more values to attribute 'type'
  • Loading branch information
Klaus Thoden committed Jul 11, 2017
1 parent ffb0db5 commit 84bb40d
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 14 deletions.
98 changes: 85 additions & 13 deletions eoa_tei.rnc
Expand Up @@ -5,10 +5,10 @@ default namespace tei = "http://www.tei-c.org/ns/1.0"
namespace teix = "http://www.tei-c.org/ns/Examples"
namespace xlink = "http://www.w3.org/1999/xlink"

# Schema generated from ODD source 2017-05-02T08:31:50Z. .
# TEI Edition: Version 3.1.0. Last updated on
# 15th December 2016, revision d3f5e70
# TEI Edition Location: http://www.tei-c.org/Vault/P5/Version 3.1.0/
# Schema generated from ODD source 2017-07-11T12:24:11Z. .
# TEI Edition: Version 3.2.0. Last updated on
# 10th July 2017, revision 0fcf651
# TEI Edition Location: http://www.tei-c.org/Vault/P5/Version 3.2.0/
#

#
Expand Down Expand Up @@ -875,6 +875,18 @@ tei_att.typed.attribute.type =
|
##
"locationindex"
|
##
"book"
|
##
"journalArticle"
|
##
"bookSection"
|
##
"thesis"
}?
tei_att.typed.attribute.subtype =

Expand Down Expand Up @@ -1087,8 +1099,8 @@ tei_att.citing.attributes =
tei_att.citing.attribute.to
tei_att.citing.attribute.unit =

## identifies the unit of information conveyed by the element, e.g. columns, pages, volume.
## Suggested values include: 1] volume; 2] issue; 3] page; 4] line; 5] chapter; 6] part; 7] column
## identifies the unit of information conveyed by the element, e.g. columns, pages, volume, entry.
## Suggested values include: 1] volume; 2] issue; 3] page; 4] line; 5] chapter; 6] part; 7] column; 8] entry
attribute unit {

## the element contains a volume number.
Expand All @@ -1109,8 +1121,11 @@ tei_att.citing.attribute.unit =
## the element identifies a part of a book or collection.
"part"
|
## the element identifies a column.
## the element identifies an entry number or label in a list of entries.
"column"
|
## the element identifies a column.
"entry"
| xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
tei_att.citing.attribute.from =
Expand Down Expand Up @@ -1252,7 +1267,7 @@ tei_model.stageLike_sequenceRepeatable = notAllowed
tei_model.eventLike = notAllowed
tei_model.global.edit = notAllowed
tei_model.divPart = tei_model.lLike | tei_model.pLike | tei_lg
tei_model.persStateLike = tei_persName | tei_affiliation
tei_model.persStateLike = tei_persName | tei_affiliation | tei_persona
tei_model.personLike = tei_org | tei_person
tei_model.personPart =
tei_model.biblLike
Expand Down Expand Up @@ -1281,7 +1296,12 @@ tei_model.placeStateLike_sequenceRepeatable =
tei_model.orgPart = tei_model.eventLike
tei_model.publicationStmtPart.agency = tei_publisher | tei_distributor
tei_model.publicationStmtPart.detail =
tei_address | tei_date | tei_pubPlace | tei_idno | tei_availability
tei_model.ptrLike
| tei_address
| tei_date
| tei_pubPlace
| tei_idno
| tei_availability
tei_model.availabilityPart = tei_licence
tei_model.descLike = notAllowed
tei_model.quoteLike = tei_quote
Expand Down Expand Up @@ -1452,7 +1472,7 @@ tei_p =
" "
sch:report [
test =
"(ancestor::tei:p or ancestor::tei:ab) and not(parent::tei:exemplum |parent::tei:item |parent::tei:note |parent::tei:q |parent::tei:quote |parent::tei:remarks |parent::tei:said |parent::tei:sp |parent::tei:stage |parent::tei:cell |parent::tei:figure)"
"not(ancestor::floatingText) and (ancestor::tei:p or ancestor::tei:ab) and not(parent::tei:exemplum |parent::tei:item |parent::tei:note |parent::tei:q |parent::tei:quote |parent::tei:remarks |parent::tei:said |parent::tei:sp |parent::tei:stage |parent::tei:cell |parent::tei:figure )"
"\x{a}" ~
" Abstract model violation: Paragraphs may not contain other paragraphs or ab elements.\x{a}" ~
" "
Expand Down Expand Up @@ -1714,6 +1734,7 @@ tei_head =
| tei_model.global)*,
tei_att.global.attributes,
tei_att.typed.attributes,
tei_att.placement.attributes,
tei_att.written.attributes,
empty
}
Expand Down Expand Up @@ -1762,7 +1783,7 @@ tei_graphic =
}
tei_pb =

## (page break) marks the start of a new page in a paginated document. [3.10.3. Milestone
## (page beginning) marks the beginning of a new page in a paginated document. [3.10.3. Milestone
## Elements]
element pb {
empty,
Expand All @@ -1775,7 +1796,7 @@ tei_pb =
}
tei_lb =

## (line break) marks the start of a new (typographic) line in some edition or version of a text. [3.10.3. Milestone
## (line beginning) marks the beginning of a new (typographic) line in some edition or version of a text. [3.10.3. Milestone
## Elements 7.2.5. Speech Contents]
element lb {
empty,
Expand Down Expand Up @@ -1843,7 +1864,8 @@ tei_respStmt =

## (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]
element respStmt {
(tei_model.nameLike.agent+ | tei_model.nameLike.agent+),
((tei_model.nameLike.agent+ | tei_model.nameLike.agent+),
tei_note*),
tei_att.global.attributes,
tei_att.canonical.attributes,
empty
Expand Down Expand Up @@ -2797,6 +2819,13 @@ tei_affiliation =
tei_att.editLike.attributes,
tei_att.datable.attributes,
tei_att.naming.attributes,
tei_att.typed.attribute.subtype,

## characterizes the element in some sense, using any convenient classification scheme or typology.
## Sample values include: 1] sponsor; 2] recommend; 3] discredit; 4] pledged
attribute type {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?,
empty
}
tei_birth =
Expand All @@ -2808,6 +2837,13 @@ tei_birth =
tei_att.editLike.attributes,
tei_att.datable.attributes,
tei_att.naming.attributes,
tei_att.typed.attribute.subtype,

## characterizes the element in some sense, using any convenient classification scheme or typology.
## Sample values include: 1] caesarean(caesarean section) ; 2] vaginal(vaginal delivery) ; 3] exNihilo(ex nihilo) ; 4] incorporated; 5] founded; 6] established
attribute type {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?,
empty
}
tei_death =
Expand All @@ -2819,6 +2855,13 @@ tei_death =
tei_att.editLike.attributes,
tei_att.datable.attributes,
tei_att.naming.attributes,
tei_att.typed.attribute.subtype,

## characterizes the element in some sense, using any convenient classification scheme or typology.
## Sample values include: 1] proclaimed; 2] assumed; 3] verified; 4] clinical; 5] brain; 6] natural; 7] unnatural; 8] fragmentation; 9] dissolution
attribute type {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?,
empty
}
tei_location =
Expand Down Expand Up @@ -2893,4 +2936,33 @@ tei_person =
}?,
empty
}
tei_persona =

## provides information about one of the personalities identified for a given individual, where an individual has multiple personalities. [13.3.2. The Person Element]
element persona {
(tei_model.pLike+ | (tei_model.personPart | tei_model.global)*),
tei_att.global.attributes,
tei_att.editLike.attributes,
tei_att.sortable.attributes,

## specifies a primary role or classification for the persona.
attribute role {
list {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }+
}
}?,

## specifies the sex of the persona.
attribute sex {
list {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }+
}
}?,

## specifies an age group for the persona.
attribute age {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?,
empty
}
start = tei_TEI
2 changes: 1 addition & 1 deletion eoa_tei.xml
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en"><teiHeader><fileDesc><titleStmt><title>EOA TEI Extension</title><author>generated by Roma 4.18</author></titleStmt><publicationStmt><p>for use by whoever wants it</p></publicationStmt><notesStmt><note type="ns">http://www.edition-open-access.de/ns/nonTEI</note></notesStmt><sourceDesc><p>created on Tuesday 28th March 2017 09:26:18 AM</p></sourceDesc></fileDesc></teiHeader><text><front><divGen type="toc"/></front><body><p>My TEI Customization&#xD;
starts with modules tei, core, textstructure and header</p><schemaSpec ident="eoa_tei" docLang="en" prefix="tei_" xml:lang="en"><moduleRef key="core" except="abbr add addrLine binaryObject cb choice cit citedRange corr del desc distinct divGen emph expan gap gb gloss headItem headLabel measureGrp media meeting mentioned milestone name num orig postBox postCode ptr q reg relatedItem resp rs said series sic soCalled sp speaker stage street teiCorpus textLang time"/><moduleRef key="tei" except=""/><moduleRef key="header" except="application authority biblFull cRefPattern calendar calendarDesc catDesc catRef category classCode classDecl correction correspAction correspContext correspDesc creation editorialDecl funder geoDecl hyphenation interpretation listPrefixDef namespace normalization notesStmt prefixDef principal projectDesc punctuation quotation refState refsDecl samplingDecl schemaRef scriptNote segmentation sponsor stdVals styleDefDecl tagUsage taxonomy typeNote xenoData"/><moduleRef key="textstructure" except="argument byline closer dateline div1 div2 div3 div4 div5 div6 div7 docAuthor docDate docEdition docImprint docTitle floatingText group imprimatur opener postscript salute signed titlePart trailer"/><moduleRef key="figures" except="figDesc notatedMusic"/><moduleRef key="namesdates" except="addName age bloc climate district education event faith floruit genName geo geogFeat geogName langKnowledge langKnown listEvent listNym listOrg listPerson listPlace listRelation nameLink nationality nym occupation offset orgName personGrp place placeName population region relation residence roleName settlement sex socecStatus state terrain trait"/><elementSpec ident="div" module="textstructure" mode="change"><attList><attDef ident="ana" mode="delete"/><attDef ident="cert" mode="delete"/><attDef ident="change" mode="delete"/><attDef ident="copyOf" mode="delete"/><attDef ident="corresp" mode="delete"/><attDef ident="decls" mode="delete"/><attDef ident="exclude" mode="delete"/><attDef ident="hand" mode="delete"/><attDef ident="met" mode="delete"/><attDef ident="next" mode="delete"/><attDef ident="org" mode="delete"/><attDef ident="part" mode="delete"/><attDef ident="prev" mode="delete"/><attDef ident="real" mode="delete"/><attDef ident="resp" mode="delete"/><attDef ident="rhyme" mode="delete"/><attDef ident="sameAs" mode="delete"/><attDef ident="sample" mode="delete"/><attDef ident="select" mode="delete"/><attDef ident="source" mode="delete"/><attDef ident="subtype" mode="delete"/><attDef ident="synch" mode="delete"/></attList></elementSpec><classSpec ident="att.typed" type="atts" mode="change" module="tei"><attList><attDef ident="type" mode="change" usage="opt"><valList type="closed" mode="replace"><valItem ident="eoainformation"/><valItem ident="serieseditors"/><valItem ident="eoadevteam"/><valItem ident="eoainfo"/><valItem ident="mprlinformation"/><valItem ident="scientificboard"/><valItem ident="dedication"/><valItem ident="part"/><valItem ident="chapter"/><valItem ident="section"/><valItem ident="subsection"/><valItem ident="subsubsection"/><valItem ident="url"/><valItem ident="bibliog"/><valItem ident="ordered"/><valItem ident="bulleted"/><valItem ident="gloss"/><valItem ident="page"/><valItem ident="cover"/><valItem ident="bibliography"/><valItem ident="index"/><valItem ident="nameindex"/><valItem ident="locationindex"/></valList></attDef></attList></classSpec></schemaSpec></body></text></TEI>
starts with modules tei, core, textstructure and header</p><schemaSpec ident="eoa_tei" docLang="en" prefix="tei_" xml:lang="en"><moduleRef key="core" except="abbr add addrLine binaryObject cb choice cit citedRange corr del desc distinct divGen emph expan gap gb gloss headItem headLabel measureGrp media meeting mentioned milestone name num orig postBox postCode ptr q reg relatedItem resp rs said series sic soCalled sp speaker stage street teiCorpus textLang time"/><moduleRef key="tei" except=""/><moduleRef key="header" except="application authority biblFull cRefPattern calendar calendarDesc catDesc catRef category classCode classDecl correction correspAction correspContext correspDesc creation editorialDecl funder geoDecl hyphenation interpretation listPrefixDef namespace normalization notesStmt prefixDef principal projectDesc punctuation quotation refState refsDecl samplingDecl schemaRef scriptNote segmentation sponsor stdVals styleDefDecl tagUsage taxonomy typeNote xenoData"/><moduleRef key="textstructure" except="argument byline closer dateline div1 div2 div3 div4 div5 div6 div7 docAuthor docDate docEdition docImprint docTitle floatingText group imprimatur opener postscript salute signed titlePart trailer"/><moduleRef key="figures" except="figDesc notatedMusic"/><moduleRef key="namesdates" except="addName age bloc climate district education event faith floruit genName geo geogFeat geogName langKnowledge langKnown listEvent listNym listOrg listPerson listPlace listRelation nameLink nationality nym occupation offset orgName personGrp place placeName population region relation residence roleName settlement sex socecStatus state terrain trait"/><elementSpec ident="div" module="textstructure" mode="change"><attList><attDef ident="ana" mode="delete"/><attDef ident="cert" mode="delete"/><attDef ident="change" mode="delete"/><attDef ident="copyOf" mode="delete"/><attDef ident="corresp" mode="delete"/><attDef ident="decls" mode="delete"/><attDef ident="exclude" mode="delete"/><attDef ident="hand" mode="delete"/><attDef ident="met" mode="delete"/><attDef ident="next" mode="delete"/><attDef ident="org" mode="delete"/><attDef ident="part" mode="delete"/><attDef ident="prev" mode="delete"/><attDef ident="real" mode="delete"/><attDef ident="resp" mode="delete"/><attDef ident="rhyme" mode="delete"/><attDef ident="sameAs" mode="delete"/><attDef ident="sample" mode="delete"/><attDef ident="select" mode="delete"/><attDef ident="source" mode="delete"/><attDef ident="subtype" mode="delete"/><attDef ident="synch" mode="delete"/></attList></elementSpec><classSpec ident="att.typed" type="atts" mode="change" module="tei"><attList><attDef ident="type" mode="change" usage="opt"><valList type="closed" mode="replace"><valItem ident="eoainformation"/><valItem ident="serieseditors"/><valItem ident="eoadevteam"/><valItem ident="eoainfo"/><valItem ident="mprlinformation"/><valItem ident="scientificboard"/><valItem ident="dedication"/><valItem ident="part"/><valItem ident="chapter"/><valItem ident="section"/><valItem ident="subsection"/><valItem ident="subsubsection"/><valItem ident="url"/><valItem ident="bibliog"/><valItem ident="ordered"/><valItem ident="bulleted"/><valItem ident="gloss"/><valItem ident="page"/><valItem ident="cover"/><valItem ident="bibliography"/><valItem ident="index"/><valItem ident="nameindex"/><valItem ident="locationindex"/><valItem ident="book"/><valItem ident="journalArticle"/><valItem ident="bookSection"/><valItem ident="thesis"/></valList></attDef></attList></classSpec></schemaSpec></body></text></TEI>

0 comments on commit 84bb40d

Please sign in to comment.