1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/Recursive/Resources/recursive_template.xhtml Fri Jan 27 17:00:33 2006 +0000
1.3 @@ -0,0 +1,39 @@
1.4 +<?xml version="1.0" encoding="iso-8859-1"?>
1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
1.6 + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1.7 +<html xmlns="http://www.w3.org/1999/xhtml"
1.8 + xmlns:template="http://www.boddie.org.uk/ns/xmltools/template">
1.9 +<head>
1.10 + <title>Recursive Example</title>
1.11 +</head>
1.12 +<body template:element="recursive">
1.13 +<form action="" method="POST">
1.14 +
1.15 +<!-- Template text between the start and the interesting part. -->
1.16 +
1.17 +<div template:element="list">
1.18 + <p>This is a list called <input template:attribute-field="name" name="..." type="text" value="..."/></p>
1.19 + <p>
1.20 + <input template:selector-field="remove" name="..." type="submit" value="Remove list"/>
1.21 + <input template:selector-field="add-item,item" name="..." type="submit" value="Add item to list"/>
1.22 + </p>
1.23 + <ul>
1.24 + <li template:element="item">
1.25 + <p>This is an item called <input template:attribute-field="name" name="..." type="text" value="..."/></p>
1.26 + <p>
1.27 + <input template:selector-field="remove" name="..." type="submit" value="Remove item"/>
1.28 + <input template:selector-field="add-list,list" name="..." type="submit" value="Add list here"/>
1.29 + </p>
1.30 + <p template:element="list">List goes here...</p>
1.31 + </li>
1.32 + </ul>
1.33 +</div>
1.34 +<p>
1.35 + <input template:selector-field="add-list,list" name="..." type="submit" value="Add list" />
1.36 +</p>
1.37 +
1.38 +<!-- Template text between the interesting part and the end. -->
1.39 +
1.40 +</form>
1.41 +</body>
1.42 +</html>