DCLP / dclpxsltbox

Sandbox for development, testing, and review of XSLT for DCLP
http://dclp.github.io/dclpxsltbox/
1 stars 5 forks source link

Biblio id still not saving #271

Closed rla2118 closed 7 years ago

rla2118 commented 7 years ago

This issue concerns http://litpap.info/editor/publications/534/dclp_meta_identifiers/1092/edit

If one enters the biblio id (95251), the system recognizes the number and it previews the bibl. correctly. Still, the file will not save. Instead, the system generates this error message:

Error updating file: element "profileDesc" not allowed here; expected the element end-tag. This file was NOT SAVED.

Edelweiss commented 7 years ago

TM No. 219238

Edelweiss commented 7 years ago

reason for this malfunction is that profileDesc is appended after revisionDesc

it must come after fileDesc and before revisionDesc

element teiHeader
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   ( fileDesc, model.teiHeaderPart*, revisionDesc? )
}

(profileDesc being part of teiHeaderPart)

Edelweiss commented 7 years ago

children of DCLP’s teiHeader

HGV’s teiHeader has the exact same child elements

in eXist:

for $child in fn:distinct-values(collection('/db/data/idp.data/dclp/HGV_meta_EpiDoc?select=*.xml;recurse=yes')//tei:teiHeader/node()/name(.))
  return $child
Edelweiss commented 7 years ago

https://github.com/DCLP/sosol/commit/11456d0723e7849767c8214305a1c9e0c75e43f4

jcowey commented 7 years ago

This now seems fine. I am closing.