ncbi/JATSPreviewStylesheets

jats-html.xsl and jats-PMCcit-html.xpl produce different references

Closed this issue · 1 comments

The xml source contains the following:

<ref id="R18"><label>18</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Greenspan</surname><given-names>JA</given-names></name><name><surname>McMahon</surname><given-names>SA</given-names></name><name><surname>Chebet</surname><given-names>JJ</given-names></name><name><surname>Mpunga</surname><given-names>M</given-names></name><name><surname>Urassa</surname><given-names>DP</given-names></name><name><surname>Winch</surname><given-names>PJ</given-names></name></person-group><article-title>Sources of community health worker motivation: a qualitative study in Morogoro Region, Tanzania.</article-title><source>Hum Resour Health</source><year>2013</year><volume>11</volume><fpage>52</fpage><pub-id pub-id-type="doi">10.1186/1478-4491-11-52</pub-id><pub-id pub-id-type="pmid">24112292</pub-id></mixed-citation></ref>

Using XML Calabash from the command line:
java -jar xmlcalabash-1.1.21-98.jar -i source=XYZ.xml -o result=XYZ.htm shells/xproc/jats-PMCcit-html.xpl

renders the reference correctly:
18 Greenspan JA, McMahon SA, Chebet JJ, Mpunga M, Urassa DP, Winch PJ, authors. Sources of community health worker motivation: a qualitative study in Morogoro Region, Tanzania. Hum Resour Health. 2013;11:52DOI: 10.1186/1478-4491-11-52. [24112292]

But applying jats-html.xsl on the exact same xml source for on-the-fly display directly in the browser produces the following wrong result:
18 JA GreenspanSA McMahonJJ ChebetM MpungaDP UrassaPJ WinchSources of community health worker motivation: a qualitative study in Morogoro Region, Tanzania.Hum Resour Health2013115210.1186/1478-4491-11-5224112292

Any idea why?

TIA

On further inspection I've found that refs get (pre-)formatted by the xslt/citations-prep/jats-PMCcit.xsl stylesheet.

For example, the input ref mentioned in my original post becomes:

<ref id="R1"><label>1</label><mixed-citation publication-type="journal">Perry HB, Zulliger R, Rogers MM, authors. Community health workers in low-, middle-, and high-income countries: an overview of their history, recent evolution, and current effectiveness. Annu Rev Public Health. 2014;35:399&#x2013;421. DOI: 10.1146/annurev-publhealth-032013-182354. [<ext-link ext-link-type="pmid" xlink:href="http://www.ncbi.nlm.nih.gov/pubmed/24387091">24387091</ext-link>]</mixed-citation></ref>