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
19 stars 4 forks source link

Make xslt transform conservative #144

Open difranco opened 7 years ago

difranco commented 7 years ago

Assure that in the course of the xslt transform being applied to convert article xml to wikitext, if something isn't recognized in the conversion the conversion fails and logs an error instead of passing silently over and omitting the element or emitting erroneous markup. This may involve both changing how the transform is applied by libxml to use more strict setting, and modifying the xslt transform itself.

Daniel-Mietchen commented 7 years ago

Example for testing purposes: https://en.wikisource.org/w/index.php?title=Wikisource:WikiProject_Open_AccessProgrammatic_import_from_PubMed_Central/Prophylactic_versus_Therapeutic_Fingolimod_Restoration_of_Presynaptic_Defects_in_Mice_Suffering_from_Experimental_Autoimmune_Encephalomyelitis&oldid=6669526 (doi:10.1371/journal.pone.0170825/ PMC5268435)