1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/VerySimple/Resources/structure_multivalue_template.xhtml Wed Jul 20 22:46:04 2005 +0000
1.3 @@ -0,0 +1,45 @@
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="value" name="{template:this-attribute()}" type="text" value="{$this-value}" />
1.20 + <input name="remove={template:this-element()}" type="submit" value="Remove" />
1.21 + </p>
1.22 + <p template:element="types">
1.23 + Item type:
1.24 + <select template:element="type" name="{template:list-attribute('value')}" multiple="multiple">
1.25 + <option template:element="type-enum" template:expr="@value-is-set" template:expr-attr="selected"
1.26 + template:value="@value" value="{@value}" />
1.27 + </select>
1.28 + </p>
1.29 + <p>
1.30 + Itself containing more items:
1.31 + </p>
1.32 + <p template:element="subitem">
1.33 + Sub-item: <input template:attribute="subvalue" name="{template:this-attribute()}" type="text" value="{$this-value}" />
1.34 + <input name="remove2={template:this-element()}" type="submit" value="Remove" />
1.35 + </p>
1.36 + <p>
1.37 + <input name="add2={template:this-element()}" type="submit" value="Add subitem" />
1.38 + </p>
1.39 +</div>
1.40 +<p>
1.41 + <input name="add={template:this-element()}" type="submit" value="Add item" />
1.42 +</p>
1.43 +
1.44 +<!-- Template text between the interesting part and the end. -->
1.45 +
1.46 +</form>
1.47 +</body>
1.48 +</html>