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.
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.
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
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.
pasting it into the window.
I have tried both the suggested xmls...load external and/or don't load externals
name: ECandT-zd.csl
<?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).
*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.