{"id":15617086,"url":"https://github.com/titaniumbones/xslt-example","last_synced_at":"2026-03-07T20:04:07.216Z","repository":{"id":141872400,"uuid":"187393562","full_name":"titaniumbones/xslt-example","owner":"titaniumbones","description":"Just a simple repository to show how to do xslt transforms w/ javascript \u0026 API calls ","archived":false,"fork":false,"pushed_at":"2019-09-29T21:18:39.000Z","size":516,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T02:51:37.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://titaniumbones.github.io/xslt-example/","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/titaniumbones.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-18T18:42:38.000Z","updated_at":"2019-09-29T21:18:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"591091c4-243c-40eb-afe6-b8bffad13d05","html_url":"https://github.com/titaniumbones/xslt-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fxslt-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fxslt-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fxslt-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fxslt-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/titaniumbones","download_url":"https://codeload.github.com/titaniumbones/xslt-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242756870,"owners_count":20180206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T07:41:25.647Z","updated_at":"2026-03-07T20:04:02.184Z","avatar_url":"https://github.com/titaniumbones.png","language":"XSLT","readme":"# XSLT Practice Repo\n\nThis repository contains a small number of XML/XSL transform examples for students in [WDW235: Intro to Digital Humanities](https://fas.calendar.utoronto.ca/course/wdw235h1). 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. \n\n## Contents\n\n- `./ruin/` contains a partially-encoded copy of [The Ruin](https://en.wikipedia.org/wiki/The_Ruin) in [./ruin/ruin.xml][./ruin/ruin.xml]. This file is not vaild TEI, and lacks reference to the TEI specification. The techniques demonstrated in the accompanying javascript and XSL files provide some context for the work students are expected to do in their XML assignment. \n- `./rj/` contains a lightly-modified version of the [Folger Shakespeare Libarry](https://www.folger.edu/)'s [CC-BY-NC-4.0](https://creativecommons.org/licenses/by-nc/3.0/)-licensed, [TEI-simple](https://tei-c.org/tag/tei-simple/)-encoded text of _Romeo and Juliet_ by William Shakespeare. I've made two modifications: \n  - I've removed Acts 1,3,4, and 5 to keep the file size manageable\n  - I've removed most namespace references from the file in order to simplify the XSL transforms. \n\n## Seeing the transforms at work\n\nThere are 3 ways to see the transforms at work:\n- [look at the rendered version of this repository on github Pages](https://titaniumbones.github.io/xslt-example/)\n- [paste the XML and XSL code into an online xsl code playground](http://fiddle.frameless.io/)\n- use a command-line XSL processing tool like xsltproc (see below)\n\n### Installing and using xsltproc on MacOS\n\n- Clone this repo were you want to keep it: \n\n```sh\ncd ~/Documents/\ngit clone https://github.com/YOURUSERNAME/xslt-example.git\ncd xslt-example\n```\n\n- work in a real text editor (VSCode, Atom, Sublime) and make changes to `rj/rom-act2.xml` and `rj/rom-trans.xsl`. \n- check your changes with xsltproc: \n\n``` sh\ncd rj\nxsltproc rom-trans.xsl rom-act2.xml \u003e rom.html\nopen rom.html \n```\n\nYou'll need to inxtall xsltproc (cf. http://macappstore.org/libxslt/): first install Homebrew, then run `brew install libxslt`\n\nHopefully that works. \n\n\n### Linux Instructions\n\n- Clone repo as a bove\n- install `libxml` using your distro-specific tools\n- use the temrinal as above\n\n### Windows Instructions\n\nUmmm....  I have no idea, hopefully someone can figure that out.  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitaniumbones%2Fxslt-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftitaniumbones%2Fxslt-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitaniumbones%2Fxslt-example/lists"}