• Stars
    star
    186
  • Rank 207,316 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 13 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Citation Style Language schema

Schemas describing the Citation Style Language

This is the official repository for schemas describing the Citation Style Language (CSL). Current schemas include:

  • CSL schema - describes CSL style and locale XML files
  • CSL-JSON schema - describes a commonly used JSON data model for storing CSL processor input (such as bibliographic metadata).

For more information about CSL, visit https://citationstyles.org. For general quesions and discussions have a look at the CSL-forum.

CSL Schema

The CSL schema is written in the compact syntax of RELAX NG, and currently consists of the following files:

CSL style and locale files should be validated against csl.rnc, which incorporates the content of the other files.

The CSL schema contains several Schematron rules to make sure all macros called in a CSL style are actually defined. Since the popular Jing XML validator currently ignores embedded Schematron rules, we also provide the csl.sch Schematron schema, which contains the Schematron rules extracted from the CSL schema. Jing users can use csl.sch to perform a secondary validation of CSL styles.

CSL-JSON Schema

The CSL-JSON schema is written in JSON Schema, and currently consists of the following files:

To render citations and bibliographies, CSL processors not only require CSL style and locale files, but also bibliographic metadata. The citeproc-js CSL processor introduced a JSON format to store such metadata, and this format has since been adopted by various other software products. The format, also known as "citeproc-JSON", has been codified in the CSL-JSON Schema. This same schema can be used to validate YAML.

At this point the CSL-JSON schema is not yet fully normative, and care must be taken to ensure compatibility with other tools built around CSL-JSON.

Whereas csl-data.json describes how the metadata of bibliographic items can be stored, csl-citation.json incorporates csl-data.json and adds an additional layer of information to also describe the context in which bibliographic items are cited. This includes information such as the order in which items are cited, which items are cited together in a single citation, etc.

Licensing

This repository is released under the MIT license.

More Repositories

1

styles

Official repository for Citation Style Language (CSL) citation styles.
Ruby
3,266
star
2

csl-editor

cslEditorLib - A HTML 5 library for searching and editing CSL styles
JavaScript
186
star
3

locales

Official repository for Citation Style Language (CSL) locale files.
Ruby
140
star
4

journals

Tools and journal metadata for generating dependent CSL styles
Ruby
50
star
5

styles-distribution

Official repository for distribution of validated CSL citation styles.
41
star
6

documentation

Citation Style Language documentation
Python
41
star
7

utilities

Citation Style Language utilities
JavaScript
18
star
8

csl-editor-demo-site

Reference implementation of the CSL editor
HTML
18
star
9

test-suite

HTML
11
star
10

abbreviations

Makefile
10
star
11

csl-validator

Validator for CSL styles and locales
JavaScript
9
star
12

formatter

Formatter for CSL styles
JavaScript
7
star
13

citation-style-language.github.io

Official repository for the Citation Style Language (CSL) website.
SCSS
6
star
14

Sheldon

Pull request bot for the CSL styles repository
Ruby
3
star
15

test-suite-old

A test suite for CSL.
Ruby
3
star
16

data-parsing

Provides a resource for developers wishing to generate structured CSL input data.
Python
2
star
17

csl-evolution

Central repository for coordinating CSL development
2
star
18

logo

Official repository for Citation Style Language (CSL) logos.
2
star
19

distribution-updater

A WSGI app to update the CSL styles distribution repo based on a Travis CI webhook
Python
2
star
20

governance

Governance documents
1
star
21

.github

GitHub default community health files for the Citation Style Language (CSL) project
1
star