Developing schemas for encoding and marking up Persian documents.
- Brecon Collegiate Church and School: Example of a project comparing different versions of a text and assessing the lineage, shared properties between manuscripts; multiple kinds of graphical representation (Github repo).
- For methodology, see TEI on critical apparatus.
Saxon can implement XSLT and XQUERY.
Installation
- Can install via Homebrew (recommended)
- in practice this can be difficult to get working; can also simply sync the jar file and aim at the same folder
- Saxonica installation instructions (somewhat vague / targeted at developers)
- Download Saxon HE (click on SourceForge download link)
- Move zip file to "a suitable directory" (generally the bin folder in the home directory)
- Unzip: (
unzip SaxonHE9-9-1-6J.zip)
- Make sure Java is installed - specifically Java SE Development Kit.
- Requires oracle account to download.
- Now Java can run the Saxon jar file:
java -jar saxon9he.jar- Alias for quick implementation from any folder:
alias $HOME/bin/saxon9he.jar"
- Alias for quick implementation from any folder:
Usage
- Saxonica usage instructions
- For simple transformations on the Java platform, use the command:
java net.sf.saxon.Transform -s:source -xsl:stylesheet -o:output- where source, stylesheet, and output are the source XML file, the XSLT stylesheet, and the output file respectively.
- note: Saxon will expect input and output specifications; if the XSLT already specifies the input and /or output in the code itself, then you need the flag
-itto tell Saxon not to look for an input document.- as far as output: you can specify an output file, but only XSLT results not sent internally somewhere else will output there
- If the source is a folder, it will iterate over all of the contents.