citeproc-0.10: test/csl/sort_CitationNumberPrimaryAscendingViaVariableBibliography.txt
>>===== MODE =====>>
bibliography
<<===== MODE =====<<
>>==== DESCRIPTION ====>>
Sorting on and rendering citation-numbers is accomplished with specialized logic that isn't fully
documented in the specification. Please see the links below for an explanation.
https://github.com/citation-style-language/test-suite/issues/62
https://forums.zotero.org/discussion/71443/reverse-number-bibliography
<<==== DESCRIPTION ====<<
>>===== RESULT =====>>
<div class="csl-bib-body">
<div class="csl-entry">[1] Aaaa (first-cited)</div>
<div class="csl-entry">[2] Bbbb (second-cited)</div>
<div class="csl-entry">[3] Zzzz (third-cited)</div>
<div class="csl-entry">[4] Xxxx (fourth-cited)</div>
</div>
<<===== RESULT =====<<
## Companion citations:
##
## >>[0] [1] Aaaa (first-cited); [2] Bbbb (second-cited); [3] Zzzz (third-cited); [4] Xxxx (fourth-cited)
>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
version="1.0">
<info>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<citation>
<sort>
<key variable="citation-number"/>
</sort>
<layout>
<group delimiter=" ">
<number variable="citation-number" prefix="[" suffix="]"/>
<text variable="title"/>
</group>
</layout>
</citation>
<bibliography>
<sort>
<key variable="citation-number" sort="ascending"/>
</sort>
<layout>
<text variable="citation-number" prefix="[" suffix="] "/>
<text variable="title" />
</layout>
</bibliography>
</style>
<<===== CSL =====<<
>>===== INPUT =====>>
[
{
"id": "item-1",
"title": "Aaaa (first-cited)",
"type": "book"
},
{
"id": "item-2",
"title": "Bbbb (second-cited)",
"type": "book"
},
{
"id": "item-3",
"title": "Zzzz (third-cited)",
"type": "book"
},
{
"id": "item-4",
"title": "Xxxx (fourth-cited)",
"type": "book"
}
]
<<===== INPUT =====<<
>>===== VERSION =====>>
1.0
<<===== VERSION =====<<