1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/VerySimpleWithLogin/Resources/structure_template.xhtml Fri Jun 01 23:17:45 2007 +0000
1.3 @@ -0,0 +1,44 @@
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>Example</title>
1.11 +</head>
1.12 +<body template:element="structure">
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="item">
1.18 + <p>
1.19 + Some item: <input template:attribute-field="value" name="..." type="text" value="..." />
1.20 + <input template:selector-field="remove" name="..." type="submit" value="Remove" />
1.21 + </p>
1.22 + <p>
1.23 + Item type:
1.24 + <select template:multiple-choice-field="type,value" name="...">
1.25 + <option template:multiple-choice-value="type-enum,value,selected" value="..." />
1.26 + </select>
1.27 + </p>
1.28 + <p>
1.29 + Itself containing more items:
1.30 + </p>
1.31 + <p template:element="subitem">
1.32 + Sub-item: <input template:attribute-field="subvalue" name="..." type="text" value="..." />
1.33 + <input template:selector-field="remove2" name="..." type="submit" value="Remove" />
1.34 + </p>
1.35 + <p>
1.36 + <input template:selector-field="add2,subitem" name="..." type="submit" value="Add subitem" />
1.37 + </p>
1.38 +</div>
1.39 +<p>
1.40 + <input template:selector-field="add,item" name="..." type="submit" value="Add item" />
1.41 +</p>
1.42 +
1.43 +<!-- Template text between the interesting part and the end. -->
1.44 +
1.45 +</form>
1.46 +</body>
1.47 +</html>