TEIC / Stylesheets

TEI XSL Stylesheets
228 stars 124 forks source link

Element idno gives undue space in HTML #637

Open Dominique-M opened 8 months ago

Dominique-M commented 8 months ago

In TEI XML https://d-meeus.be/biblio/biblio.xml, line 64596[*], see (\. This gives in HTML (https://d-meeus.be/biblio/Reiter1975.html) an undue space between parenthesis and number. [*] Search 0853453721, then next line, if I did publish more in the meanwhile.

ebeshero commented 8 months ago

Hi @Dominique-M! I just saw your ticket. Can you tell us a little more about how you're processing your XML file? Are you running a transformation in oxgarage? (This may help us figure out where to look for the processing issue.)

Looking at your example (thanks for pointing out the line), I wanted to see where the text nodes are. I notice this structure on entries with a set of parentheses around <idno>, where there is text in between the elements, and the parenthesis is a text node child of <bibl type="book">. Is that generally the situation we're looking at? I think we want to check the processing of <bibl> and of <idno> to see where we might be generating an extra space.

Here are a couple of examples from the XML (including the one you provided):

<bibl type="book">
          <author role="editor">
            <ref target="#RaynaReiter">
              Rayna Reiter
            </ref>
          </author> (ed.),

          <title>
            <seg type="standardindexing" subtype="feminism">
              <index><term>anthropology</term></index> <index><term>feminist anthropology</term></index>
              <index><term>féminisme</term></index> <index><term>feminism</term></index>
              <index><term>Women Question</term></index>
              <index><term>question des femmes</term></index> <index><term>femme, question des —</term></index>
            </seg><!--
            <xi:include href="indx-anthrofem.xml">indexation standard, anthropologie féministe</xi:include>

            -->

            <index><term>Toward an Anthropology of Women (Rayna Reiter)</term></index>

            <title type="main">Toward an Anthropology of Women</title>
          </title>,

          <ref target="#MonthlyReviewPress">
            Monthly Review Press, New York
          </ref>,
          1975,
          416 pages,
          <index><term>0853453721</term></index> <index><term>9780853453727</term></index>
          ISBN : <idno type="ISBN">0-85345-372-1</idno> (<idno type="ISBN">978-0-85345-372-7</idno>).
        </bibl>

I think you will see the same extra space when you try to process this one, too?

<bibl type="book">
          <author>
            <ref target="#LouisAlthusser">
              Louis Althusser
            </ref>
          </author>,

          <title>
            <index><term>Positions (Louis Althusser)</term></index>

            <title type="main">Positions (1964-1975)</title>
          </title>,

          <ref target="#publisher">
            Éditions sociales, Paris
          </ref>,
          1976,
          number pages,
          <index><term>9782209051960</term></index> <index><term>2209051967</term></index>
          ISBN : <idno type="ISBN">978-2-209-05196-0</idno> (<idno type="ISBN">2-209-05196-7</idno>).
        </bibl>