wpoa / OA-signalling

A project to coordinate implementing a system to signal whether references cited on Wikipedia are free to reuse
https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Open_Access/Signalling_OA-ness
GNU General Public License v3.0
20 stars 4 forks source link

bot not finding DTD #135

Open tcatapano opened 8 years ago

tcatapano commented 8 years ago

Warnings in python.err related to failure to load DTD. Does this trigger a fatal error after three tries?

/data/project/recitation-bot/recitation-bot/data/PLoS_Negl_Trop_Dis_2016_Apr_12_10(4)_e0004636/pntd.0004636.nxml:1: warning: failed to load external entity "/data/project/recitation-bot/recitation-bot/data/PLoS_Negl_Trop_Dis_2016_Apr_12_10(4)_e0004636/JATS-archivearticle1.dtd"
rnal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd"
                                                                               ^
Sleeping for 7.5 seconds, 2016-05-27 10:04:46
/data/project/recitation-bot/recitation-bot/data/PLoS_Negl_Trop_Dis_2016_Apr_12_10(4)_e0004636/pntd.0004636.nxml:1: warning: failed to load external entity "/data/project/recitation-bot/recitation-bot/data/PLoS_Negl_Trop_Dis_2016_Apr_12_10(4)_e0004636/JATS-archivearticle1.dtd"
rnal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd"
                                                                               ^
Sleeping for 7.5 seconds, 2016-05-27 10:04:57
/data/project/recitation-bot/recitation-bot/data/PLoS_One_2014_Jun_18_9(6)_e98781/pone.0098781.nxml:1: warning: failed to load external entity "/data/project/recitation-bot/recitation-bot/data/PLoS_One_2014_Jun_18_9(6)_e98781/JATS-archivearticle1.dtd"
rnal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd"
difranco commented 8 years ago

Can you tell me what version of the xslt libraries you are using on your machine? Came up in the call today.

Daniel-Mietchen commented 8 years ago

Pinging @tcatapano.

tcatapano commented 8 years ago

It is an XSLT 1 stylesheet and testing is done on xsltproc, which uses libxml2 via lxml in python, I believe. There may be a ---novalid option available which will turn off the loading of the referenced DTD, which could be useful.

Pinging @tcatapano https://github.com/tcatapano.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wpoa/OA-signalling/issues/135#issuecomment-222384504, or mute the thread https://github.com/notifications/unsubscribe/AA7A8mUuEObK_SgDnulnXSP3H7YRa-8Zks5qGgghgaJpZM4IoYRD .