Code in ignored
I have a macro like this to distinguish between types in one of my custom styles...
<macro name="issued">
<choose>
<if type="book chapter" match="any">
...
</if>
<else-if type="article-journal article-magazine" match="any">
...
</else-if>
<else-if type="article-newspaper">
...
</else-if>
<else-if type="manuscript">
...
</else-if>
<else>
...
</else>
</choose>
</macro>
Funny thing is, code in <else></else> (the fallback for all other types) gets ignored. Any ideas?
<macro name="issued">
<choose>
<if type="book chapter" match="any">
...
</if>
<else-if type="article-journal article-magazine" match="any">
...
</else-if>
<else-if type="article-newspaper">
...
</else-if>
<else-if type="manuscript">
...
</else-if>
<else>
...
</else>
</choose>
</macro>
Funny thing is, code in <else></else> (the fallback for all other types) gets ignored. Any ideas?
<text variable="publisher-place"/>
(or a similar one) breaks the following <choose></choose> conditional.
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="note">
<info>
<title>1</title>
<id>http://www.zotero.org/styles/1</id>
<updated>2012-02-07T01:46:04+00:00</updated>
</info>
<citation>
<layout>
<names variable="author"/>
<group>
<text variable="publisher-place"/> <!-- comment this line to make it work -->
<choose>
<if variable="issued">
<date variable="issued" form="numeric"/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</group>
</layout>
</citation>
</style>