"Position" returning true when should be false.
If I call the following macro from inside the <bibliography> element, I had expected that nothing would be printed, because the CSL specs say that "position" returns false when tested against any of the given positions.
<macro name="author">
<choose>
<if position="first" >
<names variable="author" >
<name and="symbol" />
<substitute>
<text macro="editor" />
</substitute>
</names>
</if>
</choose>
</macro>
Am I doing something wrong?
<macro name="author">
<choose>
<if position="first" >
<names variable="author" >
<name and="symbol" />
<substitute>
<text macro="editor" />
</substitute>
</names>
</if>
</choose>
</macro>
Am I doing something wrong?
Let me be more explicit about what I am trying to do:
...
<macro name="author">
<choose>
<if position="first ibid ibid-with-locator subsequent" match="any" >
<text value="citation" />
</if>
<else>
<text value="biblio" />
</else>
</choose>
</macro>
...
<citation>
<layout>
<text macro="author" />
</layout>
</citation>
<bibliography>
<layout>
<text macro="author" />
</layout>
</bibliography>
I had it as two macros, and I am going to change it back, at least for the moment.
I was just hoping to streamline things a bit, but two macros isn't the end of the world; as much as anything, I thought it would be useful to bring this to your attention.
Thanks again!