ncbi / jatspreviewstylesheets Goto Github PK
View Code? Open in Web Editor NEWJATS Preview Stylesheets
JATS Preview Stylesheets
Does it support articles from PMC ? I tested it on article
element from this call
after running xsltproc jats-html.xsl sample.xml >a.html
I get HTML with one blob of text from XML with all tags removed.
Hi,
Just wondering, is there a way for article references to be shown in Vancouver style - jats-html.xsl ?
Now:
O CalatayudJM Tenias. Effects of time, temperature and blood cell count on levels of lactate in heparinized whole blood gas samples. Scand J Clin Lab Invest. 2003;63:311โ4. 10.1080/0036551031000196012940640
It should be:
Calatayud O, Tenias JM. Effects of time, temperature and blood cell count on levels of lactate in heparinized whole blood gas samples. Scand J Clin Lab Invest 2003;63:311โ4. 10.1080/0036551031000196012940640
Regards, Erik
The sample XML file provided on Readme.md is not working (error 404). Could you please update the link?
Are the stylesheets going to be updated so as to support version 1.2 of JATS?
If not, where one can find publicly available stylesheets to transform JATS 1.2 XML documents to HTML documents?
I use Apache FOP to generate a PDF file of my JATS document that has been converted with jats-xslfo.xsl and get several of the following errors:
"Missing attribute on fo:basic-link: Either external-destination or internal-destination must be specified."
Any hints on what is wrong here?
Hey guys, sorry for asking this question here but I figured somebody who is aware of NCBI infrastructure is reading this.
Could you please explain why full text of an articles sometimes is not available ?
Let's use this article as an example
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2907408/
EFetch gives only abstract
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&retmode=xml&rettype=full&id=2907408
and oai.cgi says it doesn't exist at all !
http://www.ncbi.nlm.nih.gov/pmc/oai/oai.cgi?verb=GetRecord&metadataPrefix=pmc&identifier=oai:pubmedcentral.nih.gov:2907408
How can I get this article ?
Thank you!
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
The readme mentions that these depend on some saxon extensions:
As described in the documentation, these are XSLT 2.0 with Saxon extensions, and require a recent version of the Saxon processor to run. (Tested under Saxon 9.4.)
It would be nice if we could make them processor-independent, or, at least, only dependent on Saxon HE (extensions require either PE or EE).
If that's not possible, could we update the README to be more specific, that PE or EE is required?
P.S. This was reported by a potential user.
Exists in 'jats-xslfo.xsl' but not 'jats-html.xsl'.
It's not clear to me why 'auto-label-app', etc., are variables rather than parameters.
In principle, if they were parameters, it would be possible to add autonumbering in the formatted output of 'Orange' content, where <label> isn't allowed, by setting the parameters when invoking the XSLT processor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.