Giter VIP home page Giter VIP logo

Comments (6)

jeffbeckncbi avatar jeffbeckncbi commented on September 17, 2024

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

and

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//issues/11.

from jatspreviewstylesheets.

unoexperto avatar unoexperto commented on September 17, 2024

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.

Klortho avatar Klortho commented on September 17, 2024

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.

unoexperto avatar unoexperto commented on September 17, 2024

That helped! Awesome! Resulting HTML doesn't have correct IMG tags but I'll go through documentation more. Thanks!

from jatspreviewstylesheets.

unoexperto avatar unoexperto commented on September 17, 2024

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

from jatspreviewstylesheets.

unoexperto avatar unoexperto commented on September 17, 2024

@Klortho @jeffbeckncbi Hey guys! How is it going ? :)

from jatspreviewstylesheets.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.