Comments (6)
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
andJeff
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
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//issues/11.
from jatspreviewstylesheets.
Thank you, Jeff. As I mentioned in my original message it I tested it with article
element, not with XML returned by API.
from jatspreviewstylesheets.
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.
from jatspreviewstylesheets.
That helped! Awesome! Resulting HTML doesn't have correct IMG tags but I'll go through documentation more. Thanks!
from jatspreviewstylesheets.
Have you guys had a chance to fix this bug ? I still see it in following document
from jatspreviewstylesheets.
@Klortho @jeffbeckncbi Hey guys! How is it going ? :)
from jatspreviewstylesheets.
Related Issues (10)
- Can we remove dependencies on saxon extensions?
- Why full text of an articles sometimes is not available ? HOT 1
- Output of jats-xslfo.xsl produces "Missing attribute on fo:basic-link: Either external-destination or internal-destination must be specified." in Apache FOP HOT 1
- Vancouver referencing style
- jats-html.xsl and jats-PMCcit-html.xpl produce different references HOT 1
- Example XML provided in Readme.md not working
- Support for JATS 1.2?
- Parameters for 'auto-label-app', etc.? HOT 6
- auto-label-sec
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jatspreviewstylesheets.