Talk:TEI Web Publishing

How easy should it be?

If we're really serious about making publishing easy, surely the easiest is to insert the following at the top of the TEI?



(said Stuart at 04:06, 6 March 2010)


 * But that would work only if we want to publish a single TEI document rather than a collection of them. (xi:include will not always help, sometimes the relationship between documents should be expressed as reference rather than inclusion).
 * So maybe let's turn your question into a possible basic condition: how to publish a set of TEI documents without having to modify them manually with e.g. stylesheet PIs? Piotr 05:05, 6 March 2010 (EST)


 * The first sentence of the page talks about 'a single TEI document' Stuartyeates 15:00, 6 March 2010 (EST)
 * Maybe it shouldn't be steps but rather issues. Still, the 2nd sentence talks about a set of documents, so we can make the assumption that the 1st one talks about a single-membered set, as a particular case. (Or we can make a different assumption :-)) Piotr 15:59, 6 March 2010 (EST)
 * I think the issue here is that we're conflating documents and files, both of which are further conflated in the minds of many users with works. Stuartyeates 21:41, 6 March 2010 (EST)
 * That would make a fine introduction. Indeed, xinclude has nothing to do with documents (or has as much to do with them as inter-paragraph spacing, perhaps). Let me rephrase (still as an exercise, to see if we can get anything interesting out of it):
 * Given a document encoded in the TEI, what are the available publishing strategies?
 * One is to add the PI (to the (main) file containing the document) and count on a client-side engine in a browser (if this is what you meant, Stuart). The XSL list suggests it may be a tough task, especially where cross-platform, cross-browser portability is intended. (expertise involved: XSLT, browser XSLT engine quirks)
 * Another is to prepare a transformation scenario, possibly including a pipe, and run a processor on it. (expertise involved: XSLT + Saxon/Xalan/xsltproc -- these are at least well-documented)
 * The next scenario would involve a native TEI db (which? let's say eXist for starters; expertise: +XQuery; and aren't we looking here at a slightly different range of applications?)
 * Next is Thomas Crombez' Google Docs suggestion, which may involve an easy step (->HTML) using default stylesheets.
 * Ready-made TEI publishing solutions (other than Sebastian's stylesheets) -- if there were any such full-fledged systems, would we bother doing this?
 * Basic command of (X)HTML/CSS is a given. Somewhere on the way, one should possibly mention Cocoon, XProc... am I making any sense? If I am, it begins to look like a book... :-/ But something could be carved out of this as one of the possible examples to follow. There are lots of sources on XSLT, and Thomas has a tutorial for people who want the Google way; as Martin noted, there is little documentation on the database scenario, and this is where this might go.
 * At this point, my interests are in the use of a native XML database for the purpose of manipulating dictionaries and corpora, so I would be glad to help develop documentation on that on the understanding that there are going to be areas where I will be learning and experimenting, so not really contributing from an expert's position. Piotr 17:30, 7 March 2010 (EST)

Stuart, that's some beginning! :-) Minor points: "XSLT 1.0" can just be XSLT (1.0 is xsltproc's demand; I'm not sure about Xalan anymore), hmm, I'll just go ahead and edit it in two passes, so that the "1.0" step is easy to revert if you had something specific in mind. Piotr 07:58, 8 March 2010 (EST)

Ranked list of methods to publishing TEI content to the web
Here are two separate tables, one describes the form of the content presented on the web, the other describes how that might be hosted

Remember that for polished websites at least some CSS (Cascading StyleSheets) skills are going to required. For pages with at least some dynamism (drop down menus, expanding sections, etc), a little javascript skill goes a long way.

Domains
The root url of your published TEI needs to be consistent, but to enable google searching and to allow uses to re-find your content. The URL can also be an important part of the branding of your project.
 * Some projects choose to be in subdomains of academic institutions ( http://epidoc.cch.kcl.ac.uk/inscriptions/index.html, http://www.ota.ox.ac.uk/ , etc) these subdomains are typically free and brand the project with the institutions identity.
 * Others choose to have their own domains (http://papyri.info/idp_static/current/ http://www.freedict.org/) these are most commonly cross-institutional collaborations, these domains typically cost money to maintain.
 * Some hosted services (i.e. google sites) have their own fixed domain that users get little or no say in.

Filenames
Many systems have difficulty with filenames containing non-ASCII characters or spaces (this is very common with poorly written scripted system on UNIX platforms). Others have difficulties with multiple filesnames which differ only by case (DOS-compatible filesystems are unable to make this distinction). It is recommended that you avoid these unless absolutely necessary or you have already tested that thery're permitted on your choose system.