Language handling, relative paths

Fixed and refined language handling. Changed XPATH to relative paths for ease of use for those altering the stylesheet to work with an article set rather than a single article.