You are viewing the PKP Support Forum | PKP Home Wiki

Import XML DTD bug

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Import XML DTD bug

Postby ariadatexts » Fri Jun 01, 2007 8:50 am

I've just been trying to use the XML import plugin and I think there may be a bug in the DTD:


It declares the <email> element inside <author> as optional. But when you try to import it into the database, you get an error message saying the field may not be null.

In the documentation it does mention that you should use <![CDATA[ ]]> for empty fields and gives <email> as an example.

Perhaps in the DTD it should be made mandatory? (Or might it be the case that its only mandatory for the primary contact?)
Posts: 4
Joined: Fri Jun 01, 2007 4:02 am
Location: Norwich, UK

Postby asmecher » Fri Jun 01, 2007 1:52 pm

Hi ariadatexts,

Thanks for the heads-up. Yes, the email tag should be mandatory in the DTD; we've discussed removing this restriction, as back-issues imported via XML are often old and author emails aren't available, but we haven't come to a decision yet. In the meantime, use the <![CDATA[ ]]> work-around or supply an editorial email address.

Alec Smecher
Public Knowledge Project Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests