Skip to content

pickettj/xml_development_eurasia

Repository files navigation

XML Development Laboratory

Developing schemas for encoding and marking up Persian documents.

Methodology Resources

Example Projects

Running Saxon on Command Line

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"

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 -it to 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.

About

XML for coding Eurasian primary sources.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors