Getting XProc-Z up and running on localhost (OSX)
Some things I had to take into account (on OS X v10.11 with JDK 1.8 installed):
Prerequisite: Apache Tomcat
- installing Tomcat, e.g. according to this instruction
### Keybase proof | |
I hereby claim: | |
* I am pdaengeli on github. | |
* I am xpd (https://keybase.io/xpd) on keybase. | |
* I have a public key whose fingerprint is F652 C26B 3148 6E7D 4A15 E976 597A 3BE4 AFD9 09E9 | |
To claim this, I am signing this object: |
<?xml version="1.0" encoding="UTF-8"?> | |
<?xml-model href="out/myTei.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?> | |
<?xml-model href="out/myTei.rng" type="application/xml" | |
schematypens="http://purl.oclc.org/dsdl/schematron"?> | |
<TEI xmlns="http://www.tei-c.org/ns/1.0"> | |
<teiHeader> | |
<fileDesc> | |
<titleStmt> | |
<title>Title</title> | |
<author>Author</author> |
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<xsl:template match="/"> | |
<!-- ATTRIBUTES IN USE --> | |
<xsl:variable name="root-node" select="."/> | |
<xsl:comment> |
<?xml version="1.0" encoding="UTF-8"?> | |
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" | |
xml:lang="en"> | |
<teiHeader> | |
<fileDesc> | |
<titleStmt> | |
<title>TEI with custom attributes</title> | |
</titleStmt> | |
<publicationStmt> | |
<publisher></publisher> |
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:p="http://github.com/pdaengeli" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<!-- fuzzy bibliographic entry matching, taking roman and arabic numerals and differing formatting into account --> | |
<xsl:variable name="literature" select="doc('literature.xml')//*:bibl"/> |
Some things I had to take into account (on OS X v10.11 with JDK 1.8 installed):
height: 550 |
A1¦A2¦A3¦A4¦A5 | |
B1¦B2¦B3¦B4¦B5 | |
C1¦C2¦C3¦C4¦C5 |
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" | |
exclude-result-prefixes="xs xd" | |
version="2.0"> | |
<xsl:output indent="yes"/> | |
<xd:doc> | |
<xd:desc> |
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:fn="https://gist.github.com/pdaengeli/fd9050284a96e5d0aacacf617a8e789c" | |
exclude-result-prefixes="xs" | |
version="3.0"> | |
<!-- 99 bottles of beer (http://www.99-bottles-of-beer.net), XSLT 3.0 --> | |
<!-- https://gist.github.com/pdaengeli/fd9050284a96e5d0aacacf617a8e789c --> | |