Help me troubleshoot a CSL style

(Never mind. I've fixed it already.) Perhaps the style is shareable, though I don't have an SVN account yet. Here it is: journal-of-pragmatics.csl.
  • Trying to create a csl style for the journal of Environmental Toxicology and Chemistry.

    modified an existing citation style. It works in the chrome://zotero/content/tools/csledit.xul tool but when I tried to validate I am getting this error:

    1. Error: Unknown unnamespaced element style not allowed.
    From line 3, column 3; to line 4, column 37

    There were errors.
    Source

    1. <?oxygen↩
    2. RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"↩
    3. ?>↩
    4. <style class="in-text" xml:lang="en">↩


    any help much appreciated
  • how are you validating exactly? validator.nu?
    Are you linking to the style, or pasting it into the window?
    If the latter, I think you need to set the parser to one of the xmls

    If that doesn't help, post the style to gist.github.com as a public gist so we can have a look.
  • Yes sir...validator.nu.

    pasting it into the window.

    I have tried both the suggested xmls...load external and/or don't load externals
  • git://gist.github.com/797070.git
    name: ECandT-zd.csl
  • it's just the first two lines - fix them to read
    <?xml version="1.0" encoding="UTF-8"?>
    <style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text">

    instead of
    <?oxygen
    RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"
    ?>
    <style class="in-text" xml:lang="en">

    and you should be fine.

    While you're at it, though, you should make sure the link is the same as the id and it's recommended that the id doesn't have any empty spaces. (These are relevant if you're going to share the style, not so much for your home use).
  • Thanks for helping this rookie out.
  • I am not sure its exactly right yet but when I finish with the code it should be a spot on citaton style for Environmental Toxicology and Chemistry. how would I share it
  • post it to the same gist.github - use the same id, link and filename - which should be clear, have no spaces, and be all lowercase* - and I or someone else here will upload it for you.

    *i.e. use something like environmental-toxicology-and-chemistry.csl as the filename and use
    http://www.zotero.org/styles/environmental-toxicology-and-chemistry
    as both link and id.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.