Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix in sorting tei:biblStruct #712

Open
TomazErjavec opened this issue Nov 9, 2024 · 0 comments
Open

Small fix in sorting tei:biblStruct #712

TomazErjavec opened this issue Nov 9, 2024 · 0 comments
Assignees
Labels
conversion: bibtex conversion: html conversion: latex resp: StylesheetsGroup Issue is suitable for the group-learning approach taken in the Stylesheets Coop Working Group.

Comments

@TomazErjavec
Copy link
Contributor

I tried to generate HTML for an edition, but the conversion fails with

Type error at char 10 in expression in xsl:sort/@select on line 821 column 65 of html_core.xsl:
  XTTE1020  A sequence of more than one item is not allowed as the @select attribute of
  xsl:sort (<date>, <date>)

the error refers to the line

<xsl:sort select="tei:monogr/tei:imprint/tei:date"/>

It turns out that some of our imprint elements have more than one date, which is allowed by the standard TEI schema, and also makes sense here: the imprint describes a biblio item that was published in parts in several years. To remove the error, I suggest that the biblStructs are sorted by the first date found in imprint, i.e. change the line to read

<xsl:sort select="tei:monogr/tei:imprint/tei:date[1]"/>

The same thing would have to be done in latex/latex_core.xsl.

@HelenaSabel HelenaSabel self-assigned this Nov 25, 2024
@HelenaSabel HelenaSabel added conversion: bibtex conversion: html conversion: latex resp: StylesheetsGroup Issue is suitable for the group-learning approach taken in the Stylesheets Coop Working Group. labels Nov 25, 2024
@HelenaSabel HelenaSabel added this to the Release 7.58.0 milestone Nov 25, 2024
HelenaSabel added a commit that referenced this issue Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conversion: bibtex conversion: html conversion: latex resp: StylesheetsGroup Issue is suitable for the group-learning approach taken in the Stylesheets Coop Working Group.
Projects
None yet
Development

No branches or pull requests

2 participants