The EpiDoc Stylesheet htm-teimilestone.xsl (github.com) contains some detailed specialised cases for <milestone> in the 'ddbdp', 'dclp', and 'sammelbuch' Leiden-styles, but beyond this the default behaviour is less than useful, namely:
<xsl:otherwise>
<br/>
<xsl:value-of select="@rend"/>
</xsl:otherwise>
I think most people use milestones for (a) non-citation divisions of the text (e.g. objects intervening in the middle of a line, breaks between archaeological fragments of a surface), or (b) text divisions other than line, column, page, gathering for which there are "semantic sugar" elements. I'm not sure either of these—but certainly not the former—would want the behaviour above (especially since <milestone> requires @unit not @rend).
I would like to see:
If anyone objects to my inserting a default rendering such as abc|²abc or similar, then I propose at least to add a test for $leiden-style='london' to give this rendering, and we can survey for the needs of other projects to further improve and parametrise the stylesheets thereafter.
I'll send an email to Markup to survey the needs of the community; once we have a sense of what kinds of values would be desirable, we can come back around to implementing all of the relevant changes at one time (rather than ad hoc).
For the short term, will apply the provisional fix and will consider bigger picture changes in the future.
This was discussed briefly on Markup (last messaging, including thread), but I'm not sure what if anything has been implemented so far. Perhaps needs more discussion.
Emmanualle will summarise current XSLT behaviour, and propose an improvement. We will assess and comment on her improvement next month.
There are for sure some fixes to be made, especially to tighten the alignment between schema and stylesheets, and correct some minor bugs.
I think the default behaviour should not produce a linebreak in html as stated by Scott Di Giulio.
I would suggest replicating the behaviour that is implemented in the more specific stylesheet (teimilestone.xsl) that applies when @unit is 'fragment' or 'block'.
Code to replace the code showed above (br element + @rend)
NB. in teimilestone.xsl the namespace prefix 't:' is missing before the tag 'w'.
A more refined enhancement could add the value undefined for @unit which is used in htm-teimilestone.xsl
Proposed solution is to have two default situations, and one special case:
<div type="textpart"><milestone unit="block|fragment|…"/><milestone rend="block"/>(with your choice of@unitas above.The exact rendering of
<milestone>in a particular instance will depend on a combination of project customisation,$leiden-styleparamater, and@unitvalue, but EpiDoc default behaviour will probably be to use a pipe ('|'), possibly with the value of@n(if present) in superscript.Does that seem to cover all the exceptions we have seen?
That's seems coherent to me.
Here's how I would translate this solution in the XSL files:
teimilestone.xsl
instead of:
htm-teimilestone.xsl
instead of:
txt-teimilestone.xsl
<otherwise/>currentlyNew question
The pipe ("|") represents a block boundary as a fragment boundary. Is it what we want? Are there conventions distinguishing between the two out there ? (eg. single pipe for fragment vs double pipe for block?
Next step
According to your answers, I will make changes in the XSLT and produce a pull request.
Last edit: Emmanuelle Morlock 2024-02-23
Pull request created: https://github.com/EpiDoc/Stylesheets/pull/18
Note: same as described before, except for the spaces flanking the pipe '|' when not inword that was preserved in the final fix.
merged today