import of validated style-file doesnt work
Hi everybody,
I tried to write a style for German law citations (notes without bibliographie). Works fine in the reference test pane and is validated in validator.nu. If I open the csl-file with firefox, he asks me if I want to install it, but if I klick ok, it doesn't appear in my styles list. Same via style tab in zotero: install?=> ok => doesn't appear.
I noted that when I open it with FF, there's a grey bar on top saying something like "no style information in this document", and the first line of the file (<?xml version="1.0" encoding="UTF-8"?>) is missing.
Can anybody help? Thanks a lot! J
This is the file:
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" xml:lang="en">
<info>
<title>
test
</title>
<id>
</id>
<author>
<name>myname</name>
</author>
<summary>German Law Citation Style</summary>
<category term="note"/>
<updated>2009-05-20T02:46:19+00:00</updated>
</info>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter="/" delimiter-precedes-last="always" font-style="italic"/>
</names>
</macro>
<macro name="title-short">
<choose>
<if variable="title" match="none">
</if>
<else>
<text variable="title" form="short"/>
</else>
</choose>
</macro>
<macro name="editor-short">
<choose>
<if variable="title abstract" match="all">
</if>
<else>
<names variable="editor">
<name form="short" delimiter="/" delimiter-precedes-last="always" prefix="in: " suffix=" (Hrsg.)"/>
</names>
</else>
</choose>
</macro>
<macro name="container-title">
<choose>
<if variable="abstract">
<text variable="abstract"/>
</if>
<else>
<text variable="container-title"/>
<text variable="volume"/>
</else>
</choose>
</macro>
<macro name="edition-year">
<choose>
<if type="article-journal">
<group delimiter=" ">
<text variable="collection-title" prefix="in: "/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else-if variable="edition" match="any">
<group delimiter=" ">
<text variable="edition" suffix=" Aufl."/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else-if>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</macro>
<citation>
<option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="4"/>
<option name="et-al-subsequent-use-first" value="1"/>
<option name="disambiguate-add-names" value="true"/>
<layout prefix="" suffix="." delimiter="; ">
<choose>
<if position="ibid-with-locator">
<group delimiter=", ">
<text term="ibid" text-case="capitalize-first" suffix="."/>
<text macro="point-locators-subsequent"/>
</group>
</if>
<else-if position="ibid">
<text term="ibid" text-case="capitalize-first" suffix="."/>
</else-if>
<else>
<group delimiter=", ">
<text macro="author-short"/>
<text macro="title-short"/>
<text macro="editor-short"/>
<text macro="container-title"/>
<text macro="edition-year"/>
</group>
</else>
</choose>
</layout>
</citation>
</style>
I tried to write a style for German law citations (notes without bibliographie). Works fine in the reference test pane and is validated in validator.nu. If I open the csl-file with firefox, he asks me if I want to install it, but if I klick ok, it doesn't appear in my styles list. Same via style tab in zotero: install?=> ok => doesn't appear.
I noted that when I open it with FF, there's a grey bar on top saying something like "no style information in this document", and the first line of the file (<?xml version="1.0" encoding="UTF-8"?>) is missing.
Can anybody help? Thanks a lot! J
This is the file:
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" xml:lang="en">
<info>
<title>
test
</title>
<id>
</id>
<author>
<name>myname</name>
</author>
<summary>German Law Citation Style</summary>
<category term="note"/>
<updated>2009-05-20T02:46:19+00:00</updated>
</info>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter="/" delimiter-precedes-last="always" font-style="italic"/>
</names>
</macro>
<macro name="title-short">
<choose>
<if variable="title" match="none">
</if>
<else>
<text variable="title" form="short"/>
</else>
</choose>
</macro>
<macro name="editor-short">
<choose>
<if variable="title abstract" match="all">
</if>
<else>
<names variable="editor">
<name form="short" delimiter="/" delimiter-precedes-last="always" prefix="in: " suffix=" (Hrsg.)"/>
</names>
</else>
</choose>
</macro>
<macro name="container-title">
<choose>
<if variable="abstract">
<text variable="abstract"/>
</if>
<else>
<text variable="container-title"/>
<text variable="volume"/>
</else>
</choose>
</macro>
<macro name="edition-year">
<choose>
<if type="article-journal">
<group delimiter=" ">
<text variable="collection-title" prefix="in: "/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else-if variable="edition" match="any">
<group delimiter=" ">
<text variable="edition" suffix=" Aufl."/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else-if>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</macro>
<citation>
<option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="4"/>
<option name="et-al-subsequent-use-first" value="1"/>
<option name="disambiguate-add-names" value="true"/>
<layout prefix="" suffix="." delimiter="; ">
<choose>
<if position="ibid-with-locator">
<group delimiter=", ">
<text term="ibid" text-case="capitalize-first" suffix="."/>
<text macro="point-locators-subsequent"/>
</group>
</if>
<else-if position="ibid">
<text term="ibid" text-case="capitalize-first" suffix="."/>
</else-if>
<else>
<group delimiter=", ">
<text macro="author-short"/>
<text macro="title-short"/>
<text macro="editor-short"/>
<text macro="container-title"/>
<text macro="edition-year"/>
</group>
</else>
</choose>
</layout>
</citation>
</style>
(To use validator.nu, you'd need to add the schema URL (which you might have done--it validates, but which many neglect to do))
=>did that!
It installs fine with an id for me in Zotero 2. Haven't tested it, though.
This installs the style just fine for me.
It has nothing to do with the first line of the file (<?xml version="1.0" encoding="UTF-8"?>), that FF cuts out when I open it (in your file as well), has it?
Nothing else happens for me, either, but the style is installed after clicking "OK" in the pop-up you mention.
What happens with the other styles when you install them?
Are you sure it's not installed, even if you use Rintze's version?
Notepad is just fine for the task, yes.
Then try again.
If it doesn't work, send in an error report using Report Errors under the gear menu before restarting Firefox and post the Report ID here.
When using it in my Word-doc, an "error communicating with zotero" occurred, but fixed that with help from http://www.zotero.org/support/word_processor_plugin_troubleshooting. I tried to insert citation, looked in the error report (rather cryptical, but I understood some key words, so thanks for the hint, Dan!), and it results that I forgot to define one macro... (Should that be validated as correct?) Having done that, it works just as it should! Many many thanks!!