SAA-SDT / eac-cpf-schema

https://eac.staatsbibliothek-berlin.de/
10 stars 4 forks source link

<languagesUsed> #208

Closed SJagodzinski closed 2 years ago

SJagodzinski commented 4 years ago

Languages Used

Creator of issue

  1. Silke Jagodzinski
  2. TS-EAS: EAC-CPF subgroup
  3. silkejagodzinski@gmail.com

Related issues / documents

Role and function of singular/plural elements is confusing #21 Child elements of singular/plural elements #61

EAD3 Reconciliation

EAC-CPF specific element

Context

Summary: A grouping element used to bundle together individual <languageUsed> elements. May contain: descriptiveNote, languageUsed May occur within: description Attributes: @localType, @xml:id, @xml:lang - all optional Availability: Optional, Non-repeatable

Solution documentation:

May contain: <descriptiveNote>, <languageUsed> May occur within: <description> Attributes: @audience - optional (values limited to: external, internal) @conventationDeclarationReference - optional @id - optional @languageOfElement - optional @localType - optional @localTypeDeclarationReference - optional @maintenanceEventReference - optional @scriptOfElement - optional @sourceReference - optional

Availability: Optional, not repeatable

Example encoding

<languagesUsed audience="external" conventionDeclarationReference="conventiondeclaration1" id="languagesused1" languageOfElement="en" localType="locallanguages" localTypeDeclarationReference="localTypeDeclaration1" maintenanceEventReference="maintenancevent1" scriptOfElement="lat" sourceReference="source1">
 <languageUsed>
  <language languageCode="en">English</language>
  <writingSystem scriptCode="lat">Latin</writingSystem>
 </languageUsed>
 <descriptiveNote>
  <p>note for all used languages</p>
 </descriptiveNote>
</languagesUsed>
ailie-s commented 4 years ago

Tag Library Text:

Summary: An optional child element of <description> used for grouping together one or more <languageUsed> elements. May contain: descriptiveNote (0..1), languageUsed (1..n) May occur within: description Attributes: @audience - optional (values limited to: external, internal) @conventationDeclarationReference - optional @id - optional @languageOfElement - optional @localType - optional @localTypeDeclarationReference - optional @maintenanceEventReference - optional @scriptOfElement - optional @sourceReference- optional Description and Usage: Use the optional <languagesUsed> element to group together one or more occurrences of <languageUsed>. <languagesUsed> must include at least one <languageUsed> element. Availability: Optional, not repeatable

karinbredenberg commented 3 years ago

Test of element languagesUsed: May occur within: description 0..1Ok in rng schema, in xsd 0..n May contain: descriptiveNote (0..1), languageUsed (1..n) Ok in both schemas @audience - optional (values limited to: external, internal) Ok in both schemas @conventationDeclarationReference - optional Ok in both schemas @id - optional Ok in both schemas @languageOfElement - optional Ok in both schemas @localType - optional Missing in both schemas @localTypeDeclarationReference - optional Missing in both schemas @maintenanceEventReference - optional Ok in both schemas @scriptOfElement - optional Ok in both schemas @sourceReference - optional Ok in both schemas

Result: Addition of the localType attributes. Cardinality in xsd needs to be changed to 0..1.

karinbredenberg commented 3 years ago

Retest of element: May occur within: description 0..1 Ok in both schemas @localType - optional Ok in both schemas @localTypeDeclarationReference - optional Ok in both schemas @target - optional Ok in both schemas

Result: Element ready.