It occurs to me that something like this use case would benefit from a standard citation-formatting API?
http://forums.zotero.org/discussion/14866/more-open-api-can-this-lead-to-a-better-wordpress-plugin/#Comment_73603
Bruce