xslt-example

XSLT Practice Repo

This repository contains a small number of XML/XSL transform examples for students in WDW235: Intro to Digital Humanities. They demonstrate in broad storokes the use of XSL to transform XML texts, especially TEI-encoded texts, into HTML. The intention is to provide a somewhat gentle introduction to the use of cpomputational thinking in such contexts.

Contents

Seeing the transforms at work

There are 3 ways to see the transforms at work:

Installing and using xsltproc on MacOS

cd ~/Documents/
git clone https://github.com/YOURUSERNAME/xslt-example.git
cd xslt-example
cd rj
xsltproc rom-trans.xsl rom-act2.xml > rom.html
open rom.html 

You’ll need to inxtall xsltproc (cf. http://macappstore.org/libxslt/): first install Homebrew, then run brew install libxslt

Hopefully that works.

Linux Instructions

Windows Instructions

Ummm…. I have no idea, hopefully someone can figure that out.