JATSPreviewStylesheets
JATSPreviewStylesheets copied to clipboard
Does it support articles from PMC ?
Does it support articles from PMC ? I tested it on article
element from this call
http://www.ncbi.nlm.nih.gov/pmc/oai/oai.cgi?verb=GetRecord&metadataPrefix=pmc&identifier=oai:pubmedcentral.nih.gov:4544069
after running xsltproc jats-html.xsl sample.xml >a.html
I get HTML with one blob of text from XML with all tags removed.
The JATS Preview Stylesheets were written as a starting point for rendering JATS XML in HTML.
The XML that you are getting from http://www.ncbi.nlm.nih.gov/pmc/oai/oai.cgi?verb=GetRecord&metadataPrefix=pmc&identifier=oai:pubmedcentral.nih.gov:4544069 is an OAI response. It is not a JATS document.
However, it looks like it contains a JATS XML document (or possibly and NLM 3.0 document) between
Jeff
From: Ruslan <[email protected]mailto:[email protected]> Reply-To: ncbi/JATSPreviewStylesheets <[email protected]mailto:[email protected]> Date: Tuesday, October 6, 2015 at 1:12 PM To: ncbi/JATSPreviewStylesheets <[email protected]mailto:[email protected]> Subject: [JATSPreviewStylesheets] Does it support articles from PMC ? (#11)
Does it support articles from PMC ? I tested it on article element from this call
http://www.ncbi.nlm.nih.gov/pmc/oai/oai.cgi?verb=GetRecord&metadataPrefix=pmc&identifier=oai:pubmedcentral.nih.gov:4544069
after running xsltproc jats-html.xsl sample.xml >a.html I get HTML with one blob of text from XML with all tags removed.
— Reply to this email directly or view it on GitHubhttps://github.com/ncbi/JATSPreviewStylesheets/issues/11.
Thank you, Jeff. As I mentioned in my original message it I tested it with article
element, not with XML returned by API.
Looks like our OAI service is adding a default namespace on the article content, of xmlns="http://dtd.nlm.nih.gov/2.0/xsd/archivearticle
. That's a bug in our service. If you strip that out, you'll get better HTML. I'll report this bug.
That helped! Awesome! Resulting HTML doesn't have correct IMG tags but I'll go through documentation more. Thanks!
Have you guys had a chance to fix this bug ? I still see it in following document
http://www.ncbi.nlm.nih.gov/pmc/oai/oai.cgi?verb=GetRecord&metadataPrefix=pmc&identifier=oai:pubmedcentral.nih.gov:4554963
@Klortho @jeffbeckncbi Hey guys! How is it going ? :)