The @xml:lang attribute on div[@type='textpart'] elements are not handled by the stylesheet.
The html
Proposed solution:
<xsl:template match="t:ab">
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param>
<div class="textpart">
<!-- Found in htm-tpl-lang.xsl -->
<xsl:call-template name="attr-lang"/>
<span class="ab">
(...)
<xsl:template match="t:div">
<!-- div[@type = 'edition']" and div[@type='textpart'] can be found in htm-teidivedition.xsl. See also htm-teiab.xsl for the html element div[@class='textpart'] -->
This seems reasonably to me. Do you want to go ahead and fix it, Emmanuelle (testing for non-regression against other work in the meantime, of course)?
Yes Gabby, I'd be glad to do it. Concerning the testing for nun-regression against other work, I might take advantage of some guidance (I don't have as many different XML EpiDoc datasets in my work). What would you advice?
What I usually do is put up a dev version of the (a) guidelines, and (b) xslt, and ask either EDAG or Markup to check the first for errors, and probably Markup to test the xslt again large numbers of their texts, looking out in particular for errors in inscriptions that have textparts. The test suite (disucssed elsewhere) may or may not be helpful for this process as well.
The test suite uses some html resulting files for the comparison. So each new developement in the XSLT resulting in changes in the html shoud be updated.
* Idea from Gabby (2019-01-30), email conversation with J. Nourish and EMo :
added pull request to github
https://github.com/EpiDoc/Stylesheets/pull/1
The modification just adds a call to the templateattr-lang that takes theab/@xml:lang and transfers it to the html div[@class='texpart'].
The stylesheet doesn't take into account any attribute on div[@type='texpart']. I hadn't got at first that the GL says that there is only one ab per div.
Bump -> Future
Actually, I thought this one was fixed already, and the pull request above accepted into the EpiDoc repo? Pinging @gethia for confirmation of this? (This is a simple bug-check, so doesn't need to interrupt the current testing period.)
You're right: the pull request was merged on 21 of August. See https://github.com/EpiDoc/Stylesheets/pull/1
I put it on 9.1 but I'm not sure it was the right thing to do... shall I close it or will it be done automatically with the release?
9.1 is correct. I would mark it as done, so it will be documented as such in the release notes.