public void testSelect() {
final DirectoryTemplateLoader loader = new DirectoryTemplateLoader(new File("."));
try {
TemplateFactory f = loader.newTemplateFactory("a.html", new TemplateModifier() {
public void modifyTemplate(TemplateDocument doc) {
Tag t = doc.locateTag("/html/body/div/div/span");
assertNotNull(t);
assertEquals("span", t.getTagName());
assertEquals("text", t.getTextContents());
t = doc.locateTag("/html/body/ul/li[2]/span");
assertNotNull(t);
assertEquals("span", t.getTagName());
assertEquals("text", t.getTextContents());
}
}, Expressions.cambridgeExpressionLanguage);
Template t = f.createTemplate();
t.printTo(new OutputStreamWriter(System.out));
} catch (TemplateLoadingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (TemplateEvaluationException e) {