1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/VerySimple/Resources/structure_template.xhtml Sun Jul 17 22:35:19 2005 +0000
1.3 @@ -0,0 +1,42 @@
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 + <span template:attribute="value">
1.20 + Some item: <input name="{template:field-name()}" type="text" value="{$this-value}" />
1.21 + </span>
1.22 + <input name="remove={template:this-position()}" type="submit" value="Remove" />
1.23 + </p>
1.24 + <p>
1.25 + Itself containing more items:
1.26 + </p>
1.27 + <p template:element="subitem">
1.28 + <span template:attribute="subvalue">
1.29 + Sub-item: <input name="{template:field-name()}" type="text" value="{$this-value}" />
1.30 + </span>
1.31 + <input name="remove2={template:this-position()}" type="submit" value="Remove" />
1.32 + </p>
1.33 + <p>
1.34 + <input name="add2={template:this-position()}" type="submit" value="Add subitem" />
1.35 + </p>
1.36 +</div>
1.37 +<p>
1.38 + <input name="add={template:this-position()}" type="submit" value="Add item" />
1.39 +</p>
1.40 +
1.41 +<!-- Template text between the interesting part and the end. -->
1.42 +
1.43 +</form>
1.44 +</body>
1.45 +</html>