1.1 --- a/examples/Common/VerySimple/Resources/structure_comments.xsl Sat Dec 03 01:53:36 2005 +0000
1.2 +++ b/examples/Common/VerySimple/Resources/structure_comments.xsl Sat Dec 03 01:54:19 2005 +0000
1.3 @@ -21,7 +21,7 @@
1.4 <!-- Make the element. -->
1.5 <options>
1.6 <!-- Only for certain element types... -->
1.7 - <xsl:if test="type/type-enum[@value='Personal' and @value-is-set]">
1.8 + <xsl:if test="type/type-enum[@value='P' and @value-is-set]">
1.9 <!-- Add comments. -->
1.10 <comment>
1.11 <xsl:apply-templates select="options/comment/@value"/>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/examples/Common/VerySimple/Resources/structure_multivalue_label_template.xhtml Sat Dec 03 01:54:19 2005 +0000
2.3 @@ -0,0 +1,62 @@
2.4 +<?xml version="1.0" encoding="iso-8859-1"?>
2.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2.6 + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2.7 +<html xmlns="http://www.w3.org/1999/xhtml"
2.8 + xmlns:template="http://www.boddie.org.uk/ns/xmltools/template">
2.9 +<head>
2.10 + <title>Example</title>
2.11 + <script type="text/javascript" src="scripts/sarissa.js"> </script>
2.12 + <script type="text/javascript" src="scripts/XSLForms.js"> </script>
2.13 +</head>
2.14 +<body template:element="structure">
2.15 +<form action="" method="POST">
2.16 +
2.17 +<!-- Template text between the start and the interesting part. -->
2.18 +
2.19 +<div template:element="item">
2.20 + <p>
2.21 + Some item: <input template:attribute-field="value" name="..." type="text" value="..." />
2.22 + <input template:selector-field="remove" name="..." type="submit" value="Remove" />
2.23 + </p>
2.24 + <p>
2.25 + Item type:
2.26 + <select template:multiple-choice-list-field="type,type-enum,value" name="..." multiple="multiple"
2.27 + onchange="requestUpdate(
2.28 + 'comments',
2.29 + '{template:list-attribute('type-enum', 'value')}',
2.30 + '{template:other-elements(../options)}',
2.31 + '{template:child-attribute('value', template:child-element('comment', 1, template:other-elements(../options)))}',
2.32 + '/structure/item/options')">
2.33 + <option template:multiple-choice-list-value="type-enum,value,selected,template:i18n(text())" value="..." />
2.34 + </select>
2.35 + </p>
2.36 + <p template:element="options" template:id="comment-node" id="{template:this-element()}">
2.37 + <span template:element="comment">Comment:
2.38 + <textarea template:attribute-area="value,insert" name="..." cols="40" rows="3">
2.39 + Some comment
2.40 + </textarea>
2.41 + </span>
2.42 + </p>
2.43 + <p>
2.44 + Itself containing more items:
2.45 + </p>
2.46 + <p template:element="subitem">
2.47 + Sub-item: <input template:attribute-field="subvalue" name="..." type="text" value="..." />
2.48 + <input template:selector-field="remove2" name="..." type="submit" value="Remove" />
2.49 + </p>
2.50 + <p>
2.51 + <input template:selector-field="add2,subitem" name="..." type="submit" value="Add subitem" />
2.52 + </p>
2.53 +</div>
2.54 +<p>
2.55 + <input template:selector-field="add,item" name="..." type="submit" value="Add item" />
2.56 +</p>
2.57 +<p>
2.58 + <input name="update" type="submit" value="Update" />
2.59 +</p>
2.60 +
2.61 +<!-- Template text between the interesting part and the end. -->
2.62 +
2.63 +</form>
2.64 +</body>
2.65 +</html>
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/examples/Common/VerySimple/Resources/structure_types_label.xml Sat Dec 03 01:54:19 2005 +0000
3.3 @@ -0,0 +1,7 @@
3.4 +<?xml version="1.0"?>
3.5 +<type>
3.6 + <type-enum value="0">(Not selected)</type-enum>
3.7 + <type-enum value="I">Important</type-enum>
3.8 + <type-enum value="N">Not important</type-enum>
3.9 + <type-enum value="P">Personal</type-enum>
3.10 +</type>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/examples/Common/VerySimple/Resources/translations.xml Sat Dec 03 01:54:19 2005 +0000
4.3 @@ -0,0 +1,11 @@
4.4 +<?xml version="1.0" encoding="iso-8859-1"?>
4.5 +<translations>
4.6 + <locale>
4.7 + <code value="nb"/>
4.8 + <code value="nb_NO"/>
4.9 + <translation value="(Not selected)">(Ikke valgt)</translation>
4.10 + <translation value="Important">Viktig</translation>
4.11 + <translation value="Not important">Ikke viktig</translation>
4.12 + <translation value="Personal">Personlig</translation>
4.13 + </locale>
4.14 +</translations>