TEIC / Stylesheets

TEI XSL Stylesheets
231 stars 124 forks source link

Conversion to HTML omits publication date and pagination #518

Open qhreul opened 3 years ago

qhreul commented 3 years ago

While testing the tei-oxygen v14.0.0 framework, we observed that some information about citation references were not converted properly into HTML.

As an example, we have the following <bibStruct> element in TEI XML

<biblStruct xml:id="b0">
    <analytic>
        <title level="a" type="main">Heart disease and stroke statistics-2014 update: a report from the</title>
        <author>
            <persName>
                <forename type="first">A</forename>
                <forename type="middle">S</forename>
                <surname>Go</surname>
            </persName>
        </author>
        <author>
            <persName>
                <forename type="first">D</forename>
                <surname>Mozaffarian</surname>
            </persName>
        </author>
        <author>
            <persName>
                <forename type="first">V</forename>
                <forename type="middle">L</forename>
                <surname>Roger</surname>
            </persName>
        </author>
        <idno type="DOI">10.1161/01.cir.0000441139.02102.80</idno>
    </analytic>
    <monogr>
        <title level="j">American Heart Association. Circulation</title>
        <imprint>
            <biblScope unit="volume">129</biblScope>
            <biblScope unit="issue">3</biblScope>
            <biblScope unit="page" from="e28" to="e292" />
            <date type="published" when="2014" />
        </imprint>
    </monogr>
    <note>PubMed: 24352519</note>
</biblStruct>

After leveraging the TEI XHTML XSLT, we can observe that the publication date and the pagination is not included.

<li id="b0">
    <q class="titlea">Heart disease and stroke statistics-2014 update: a report from the</q>
    . 

    <span class="author">
        <span class="persName">A S Go
        </span>
        , 
    </span>
    <span class="author">
        <span class="persName">D Mozaffarian
        </span>
        , 
    </span>
    <span class="author">
        <span class="persName">V L Roger
        </span>
        . 
    </span>
    <a class="link_idno" href="http://dx.doi.org/10.1161/01.cir.0000441139.02102.80">10.1161/01.cir.0000441139.02102.80</a>
    <span class="titlej">American Heart Association. Circulation</span>
    <span class="date">. </span>
    <span class="vol">129</span>
    (3)  p. . 

    (PubMed: 24352519)

</li>
sydb commented 3 years ago

Council needs to discuss whether this should be fixed, should be left for someone else to fix, or the “output-a-formatted-bibliographic-entry-from-<biblStruct>” processing should be stripped out of the Stylesheets.

sydb commented 2 years ago

Stylesheets group discussed today. Plan is to make this go for assignee to attack the requested and horribly egregious problems here, without trying to tackle the HUGE kettle of fish that would be trying to get properly formatted bibliography entries from <biblStruct>. That is a rabbit hole we are not sure we wish to jump down. (At least, not any further than we already have.) Thus: