XTF is an XML publication framework. For our purposes, there are basically two processes we need to understand in order to set it up and work with it:
Detailed step-by-step instructions are given below for getting XTF up and running. In places where the instructions say “issue the command...” this just means you should type the given command into your terminal window (which will be launched when you start up XTF).
We have provided a test data set that includes 100 TEI-encoded articles from the DHQ journal. You should feel free to use your own data instead, but XTF has a few quirks you should be aware of in preparing that data:
<titlePage> element<div> elements have @xml:id attributesXTF_exercise_Windows/ or
XTF_exercise_Mac_Linux.tgz as appropriate from the
Transforming_and_Publishing_TEI_day_3-selected/
directory on a USB stick; for Mac or GNU/Linux you’ll need to
expand the compressed archive file (typically by
double-clicking it)cmdPrompt.command (Mac or
Linux) or cmdPrompt.bat (Windows). If you are on a Mac and you receive an error message saying "cmdPrompt.command can't be opened because it is from an unidentified developer", control-click on the cmdPrompt.command icon and then choose Open.chmod a+x textIndexer tomcat/bin/* tomcat/webapps/xtf/bin/textIndexer
./textIndexer -index default (Mac or Linux)
or
textIndexer -index default (Windows)
This makes XTF aware of the XML files that are in its data
folder, XTF_exercise/tomcat/webapps/xtf/data/
(we’ve preloaded this with 100 articles from Digital
Humanities Quarterly). You’ll know the indexing process is
done when the command window says “Indexing complete.”tomcat.command (Mac or
Linux) or tomcat.bat (Windows). You’ll know this
process is complete when the tomcat window says “INFO: server
startup in NUM ms”
http://localhost:8080/xtf/search
If you get an XTF browser interface, things are going well!XTF_exercise/tomcat/webapps/xtf/data/.
You’ll see a list of files with names like 000001.xml (these are
DHQ articles).control-c (??)./textIndexer -index default
http://localhost:8080/xtf/searchhttp://localhost:8080/xtf/search, try restarting
tomcat (step 4 above)A full XTF tutorial with step-by-step exercises is available at http://xtf.cdlib.org/getting-started-tutorials/. Note that all the filepaths mentioned in the tutorial start at XTF_HOME, which is equivalent to the XTF_exercise_Windows/tomcat/webapps/xtf/ directory in our self-contained XTF Workshop installation.
Full XTF documentation (aimed at a fairly advanced audience) is available at http://xtf.cdlib.org/documentation/ (same proviso as above).