Skip to content
Rintze M. Zelle edited this page Feb 1, 2015 · 4 revisions

This repository contains scripts and files for handling CSL styles.

Actively used scripts:

  • generate_dependent_styles/generate_styles_from_data.rb: Ruby script used to automatically generate most of our dependent styles. See generate_dependent_styles/README.mdown for usage instructions.
  • csl-reindenting-and-info-reordering.py: Python script used periodically to reindent CSL styles, reorder elements in the </info> section, and escape several characters that are hard to identify by eye.
  • style-qc.sh: Bash script used to validate the repository styles with Jing against the stricter "csl-repository.rnc" schema.
  • update.xsl: XSLT stylesheet to convert CSL 0.8.1 styles to the 1.0 format. See also http://citationstyles.org/downloads/upgrade-notes.html#updating-csl-0-8-styles

Older scripts:

  • update-styles.sh: bash script to validate CSL 0.8.1 styles, convert them to the 1.0 format (using update.xsl) and validate the produced CSL 1.0 styles. Dependencies:
    • CSL 0.8.1 schema
    • CSL 1.0 schema
    • update.xsl
    • RNG2Schtrn.xsl: XSLT stylesheet to extract Schematron rules from RELAX NG XML schemas
    • Jing: XML validator, supports RELAX NG Compact, see http://code.google.com/p/jing-trang/
    • Saxon: XSLT processor, ships with Jing
    • Trang: schema converter, used to convert RELAX NG Compact schemas to RELAX NG XML, see http://code.google.com/p/jing-trang/
  • update-locales.xsl and locale.sh: XSLT stylesheet and bash script to convert CSL 0.8.1 locale files to the 1.0 format
Clone this wiki locally