Problem installing custom citation style

Hi everyone,

I know that other people have had difficulty with installing custom citation styles before, but this seems really odd: I've added, literally, one space to the ASA style, and altered the name and id. It's saved as a plain text (TextEdit) with the suffix .csl. It was fine in the zotero style development screen (which is where i made the change) and when I stick it through validator.nu I get a bit of a strange response:

"Info: The Content-Type was application/octet-stream. Using the XML parser (not resolving external entities).

Schema Error: Cannot find preset schema for namespace: http://purl.org/net/xbiblio/csl.

The result cannot be determined due to a non-document-error."

As far as I can tell, though, that's just an issue with the url from this line in the style:

<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >

So... I don't think (with my really non-existent programming skills) that that should really be a problem (??). But it just won't install. I've dragged-and-dropped, been prompted to install, and said yet. I've tried to add via the style manager. I've restarted word to see if that would help. But it just won't come up on in the list of installed styles. Any thoughts? Apologies if this is a repeat question...
  • Also, just out of interest, is there any way to see the in-text reference format (as well as the bibliography) in the Zotero style repository? I suspect this style already exists, but my journal (as with all journals in my field, it seems!) no longer specifies a named style, but just gives you an example to work from. It's really unlikely to be unique, but I don't know all the styles that are out there, so...
  • that error actually sounds like it just can't load the schema - try again.
    If that doesn't work, post the style to gist.github.com as a public gist and post the URL here and I'll take a look.
  • Oh, I skipped a few steps. Now I get a whole pile of errors, but all arising from that one URL, which was in the original ASA style. Sigh. I just want a space after the colon!

    Here's the github:gist link: https://gist.github.com/1184729
  • you may not have selected the content type (XML, don't load external entities). You need to do that if you paste into the text field of the validator.
    Anyway - that style validates except for the <link> field (which needs to be filled). Before you install you should also set an id - use the zotero/style/... URIs for both.)

    No, there is no preview of the in-text citations.
  • Thanks for that. All fixed!
Sign In or Register to comment.