Closed kontovasBodleian closed 1 year ago
There is nothing in the XSLT to specifically handle locusGrp
elements. It is seldom used, and where it has been people appear to have added commas, or the word "and", inside the first locus
, for example:
Rendering line breaks in the XML as line breaks in the HTML would create an inconsistency between what is significant whitespace and what isn't, and could be easily broken by someone applying, for example, Oxygen's Format and Indent tool to tidy-up the XML.
Aha! Gotcha. I had tried putting a comma between the
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg
From: Andrew Morrison @.>
Sent: Thursday, July 27, 2023 5:45:00 PM
To: fihristorg/fihrist-mss @.>
Cc: Nicholas Kontovas @.>; Author @.>
Subject: Re: [fihristorg/fihrist-mss] default display of
There is nothing in the XSLT to specifically handle locusGrp elements. It is seldom used, and where it has been people appear to have added commas, or the word "and", inside the first locus, for example:
Rendering line breaks in the XML as line breaks in the HTML would create an inconsistency between what is significant whitespace and what isn't, and could be easily broken by someone applying, for example, Oxygen's Format and Indent tool to tidy-up the XML.
— Reply to this email directly, view it on GitHubhttps://github.com/fihristorg/fihrist-mss/issues/148#issuecomment-1653982065, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5I3ITCKXDIF2AJW2UR3YADXSKLIZANCNFSM6AAAAAA22FTYJ4. You are receiving this because you authored the thread.Message ID: @.***>
It is one of the problems with XML document formats: unless you initially develop the XSLT to deal with all possible usages, which is next to impossible with a schema as complex as TEI, then people will come up with workarounds that then limit the ability to subsequently augment the XSLT to handle them consistently. In this case, I could make it automatically add commas, but then you'd have double commas where people have already added them inside the locus elements.
But the from and to attributes of the locus element provide a way to encode machine-readable values, so punctuation in the content of locus isn't a big issue.
I'm just going off the Fihrist preview at the moment, so I could be wrong, but it seems that our style sheet collapses multiple
<locus>
tags within a<locusGrp>
into a single line, at least within<msItem>
. Is this by design, or is this an artefact of the default display property of tags within<msItem>
? If it's the latter, could we change this styling to render line breaks as line breaks between<locus>
tags? Or should I just enter the<locus>
's directly into the<msItem>
tag (which actually does display them on separate lines)?