Rendering the citation type in the clause
I'm developing a style that works differently for the different citation types.
This CSL actually works, i.e. if you use a citation type that's not currently supported, it displays the type in the bibliography.
However it fails validation. Is there a more correct way to do this?
Thanks, Rob.
<choose>
<if type="article-journal" match="any"><text macro="format1"/></if>
<else><text value="Type not supported: "/><text variable="type"/></else>
</choose>
This CSL actually works, i.e. if you use a citation type that's not currently supported, it displays the type in the bibliography.
However it fails validation. Is there a more correct way to do this?
Thanks, Rob.
https://gist.github.com/munrobasher/e232e0e8f3fe9835515992624050ff67
If you need the style to validate and you need a precise output here, the only way to go would be to write a massive else-if loop along the lines of
<else-if type="report" match="any">
etc. for all item types that are, in fact, not supported.<text value="Type Report not supported"/>
</else-if>