Overview

HTTPS SSH

Cv Maker

Cv Maker is a set of xslt programs to generate html and pdf cvs from an xml model.
Technologies: xml, xslt, fop

Features

  • Defines an xml schema (DTD format) for multi-language cv.
  • Converts the cv into html for each language
  • Converts the cv into pdf for each language

Usage

Use the following syntaxes and chain them the way you like to produce the desired output:

xmllint

Checks xml is valid against the DTD
xmllint --valid --noout --postvalid cv.xml

xsltproc

Transforms the xml to html
xsltproc -stringparam lang 'fr' -stringparam medium 'web' cv.xsl cv.xml > cvfr_web.html

  • lang parameter filters the cv on the desired language
  • medium parameter provides extra filters:
  • value web does not print full postal address for instance
  • cv.xsl is the xslt program that generates html

Transforms the xml to xsl-fo
xsltproc -stringparam lang 'fr' -stringparam medium 'web' cv.fo.xsl cv.xml > cvfr_web.fo

  • cv.fo.xsl is the xslt program that generates xsl-fo

fop

Transforms xsl-fo file into pdf file
fop -fo cvfr.fo -pdf ./paper/cvfr.pdf

Demo

The cvs on my site are generated from CV Maker and included in a Jekyll project.