jstrachan 01/08/10 10:57:22 Added: xtags/examples/web/test test_if.jsp Log: Added new test harness that works against dom4j 0.91 that demonstrates working XSLT patterns Revision Changes Path 1.1 jakarta-taglibs/xtags/examples/web/test/test_if.jsp Index: test_if.jsp =================================================================== <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags" %> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Test Conditions</title> <link rel="stylesheet" href="examples.css" type="text/css"> </head> <body> <h1>Test conditions</h1> <hr/> <xtags:parse> <foo> <type>abc</type> </foo> </xtags:parse> <xtags:forEach select="/foo"> <xtags:if test=".[type='abc']"> Found type of 'abc' </xtags:if> <hr/> <xtags:if test="type='abc'"> Found type of 'abc' using abbreviated pattern </xtags:if> <hr/> <xtags:if test="name()='foo'"> Name is foo </xtags:if> </xtags:forEach> <hr/> </body> </html>
