XSLTools

Change of examples/Common/VerySimpleWithOpenID/Resources/structure_multivalue_template.xhtml

652:7d1ce3444a77
examples/Common/VerySimpleWithOpenID/Resources/structure_multivalue_template.xhtml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/Common/VerySimpleWithOpenID/Resources/structure_multivalue_template.xhtml	Sun Feb 03 20:05:15 2008 +0000
     1.3 @@ -0,0 +1,62 @@
     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 +  <script type="text/javascript" src="scripts/sarissa.js"> </script>
    1.12 +  <script type="text/javascript" src="scripts/XSLForms.js"> </script>
    1.13 +</head>
    1.14 +<body template:element="structure">
    1.15 +<form action="" method="POST">
    1.16 +
    1.17 +<!-- Template text between the start and the interesting part. -->
    1.18 +
    1.19 +<div template:element="item">
    1.20 +  <p>
    1.21 +    Some item: <input template:attribute-field="value" name="..." type="text" value="..." />
    1.22 +    <input template:selector-field="remove" name="..." type="submit" value="Remove" />
    1.23 +  </p>
    1.24 +  <p>
    1.25 +    Item type:
    1.26 +    <select template:multiple-choice-list-field="type,type-enum,value" name="..." multiple="multiple"
    1.27 +      onchange="requestUpdate(
    1.28 +        'comments',
    1.29 +        '{template:list-attribute('type-enum', 'value')}',
    1.30 +        '{template:other-elements(../options)}',
    1.31 +        '{template:child-attribute('value', template:child-element('comment', 1, template:other-elements(../options)))}',
    1.32 +        '/structure/item')">
    1.33 +      <option template:multiple-choice-list-value="type-enum,value,selected" value="..." />
    1.34 +    </select>
    1.35 +  </p>
    1.36 +  <p template:element="options" template:section="comment-node" id="{template:this-element()}">
    1.37 +    <span template:element="comment">Comment:
    1.38 +      <textarea template:attribute-area="value,insert" name="..." cols="40" rows="3">
    1.39 +        Some comment
    1.40 +      </textarea>
    1.41 +    </span>
    1.42 +  </p>
    1.43 +  <p>
    1.44 +    Itself containing more items:
    1.45 +  </p>
    1.46 +  <p template:element="subitem">
    1.47 +    Sub-item: <input template:attribute-field="subvalue" name="..." type="text" value="..." />
    1.48 +    <input template:selector-field="remove2" name="..." type="submit" value="Remove" />
    1.49 +  </p>
    1.50 +  <p>
    1.51 +    <input template:selector-field="add2,subitem" name="..." type="submit" value="Add subitem" />
    1.52 +  </p>
    1.53 +</div>
    1.54 +<p>
    1.55 +  <input template:selector-field="add,item" name="..." type="submit" value="Add item" />
    1.56 +</p>
    1.57 +<p>
    1.58 +  <input name="update" type="submit" value="Update" />
    1.59 +</p>
    1.60 +
    1.61 +<!-- Template text between the interesting part and the end. -->
    1.62 +
    1.63 +</form>
    1.64 +</body>
    1.65 +</html>