A ‘stack’ is a set of programs that work together for a certain purpose. You will probably have noticed that working with TEI is not like working with a word processor: you can’t do everything you might want to do with it inside a single application; instead, you generally need to use multiple applications to edit, validate, transform and view your TEI documents.
To start seeing the fruits of your text-encoding labors, you will generally need:
setubandha.xml
);tei-to-html.xsl
); andA lot of people, including myself, mostly use “home-cooked” stylesheets: this provides the maximum degree of flexibility, but comes at a cost of having to write a lot of XSLT. (If you ever do decide to learn XSLT, W3Schools has a great set of tutorials.) There are a number of web-based tools that provide generic stylesheets which will get you 50% to 90% of the way towards your goal, and these projects will additionally process your documents for you. These include:
The final step, of processing the document using the stylesheet, usually requires software such as Saxon which is not so easy to set up (and for which, after all this time, I still have trouble getting the Java dependencies to work). If your desired output is an HTML document, however, then you have a big advantage: you can use the XSLTProcessor
object in Javascript, which means you can do all of your processing within a single web page.
For examples of how to do this, see here in one of my implementations of an in-browser XSLT processor; the Mālatīmādhava site uses this strategy.