| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- |
| Binding for the Swan form-binding editor. |
| |
| @version $Id$ |
| --> |
| |
| <fb:context |
| xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" |
| xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" |
| path="/fb:context" |
| lenient="true"> |
| |
| <fb:new id="items-class"/> |
| |
| <fb:class id="aggregate-class"> |
| <fb:case id="aggregate" path="."> |
| <fb:insert-node><fb:aggregate/> |
| </fb:insert-node> |
| <fb:group id="aggregate" path="fd:aggregate"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="id-class"/> |
| <fb:new id="path-class"/> |
| </fb:group> |
| <fb:new id="items-class"/> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="class-class"> |
| <fb:case id="class" path="."> |
| <fb:insert-node><fb:class/> |
| </fb:insert-node> |
| <fb:group id="class" path="fb:class"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="id-class"/> |
| </fb:group> |
| <fb:new id="items-class"/> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="group-class"> |
| <fb:case id="group" path="."> |
| <fb:insert-node><fd:group/> |
| </fb:insert-node> |
| <fb:group id="group" path="fd:group"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="id-class"/> |
| <fb:new id="label-class"/> |
| </fb:group> |
| <fb:new id="items-class"/> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="javascript-class"> |
| <fb:case id="javascript" path="."> |
| <fb:insert-node><fb:javascript/> |
| </fb:insert-node> |
| <fb:group id="javascript" path="fb:javascript"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="text-class"/> |
| </fb:group> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="new-class"> |
| <fb:case id="new" path="."> |
| <fb:insert-node><fb:new/> |
| </fb:insert-node> |
| <fb:group id="new" path="fb:new"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="id-class"/> |
| </fb:group> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="repeater-class"> |
| <fb:case id="repeater" path="."> |
| <fb:insert-node><fb:repeater/> |
| </fb:insert-node> |
| <fb:group id="repeater" path="fb:repeater"> |
| <fb:group id="stuff" path="."> |
| <fb:insert-node> |
| <fb:on-bind/> |
| </fb:insert-node> |
| <fb:new id="id-class"/> |
| <fb:new id="parent-path-class"/> |
| </fb:group> |
| <fb:new id="items-class"/> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="temp-repeater-class"> |
| <fb:case id="temp-repeater" path="."> |
| <fb:insert-node><fb:temp-repeater/> |
| </fb:insert-node> |
| <fb:group id="temp-repeater" path="fb:temp-repeater"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="id-class"/> |
| <fb:new id="parent-path-class"/> |
| <fb:insert-node> |
| <fb:on-bind/> |
| </fb:insert-node> |
| </fb:group> |
| <fb:new id="items-class"/> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="union-class"> |
| <fb:case id="union" path="."> |
| <fb:insert-node><fb:union/> |
| </fb:insert-node> |
| <fb:group id="union" path="fb:union"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="id-class"/> |
| <fb:new id="path-class"/> |
| <fb:insert-node> |
| <fd:widgets/> |
| </fb:insert-node> |
| </fb:group> |
| <fb:new id="items-class"/> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="value-class"> |
| <fb:case id="value" path="."> |
| <fb:insert-node><fb:value/> |
| </fb:insert-node> |
| <fb:group id="value" path="fb:value"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="id-class"/> |
| <fb:value id="path" path="@path"/> |
| </fb:group> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="struct-class"> |
| <fb:case id="struct" path="."> |
| <fb:insert-node><fd:struct/> |
| </fb:insert-node> |
| <fb:group id="struct" path="fd:struct"> |
| <fb:group id="stuff" path="."> |
| <fb:new id="id-class"/> |
| <fb:new id="label-class"/> |
| </fb:group> |
| <fb:new id="items-class"/> |
| </fb:group> |
| </fb:case> |
| </fb:class> |
| |
| <fb:class id="id-class"> |
| <fb:value id="id" path="@id"/> |
| </fb:class> |
| |
| <fb:class id="label-class"> |
| <fb:value id="label" path="fd:label"/> |
| </fb:class> |
| |
| <fb:class id="parent-path-class"> |
| <fb:value id="parent-path" path="@parent-path"/> |
| </fb:class> |
| |
| <fb:class id="path-class"> |
| <fb:value id="path" path="@path"/> |
| </fb:class> |
| |
| <fb:class id="text-class"> |
| <fb:value id="text" path="@text"/> |
| </fb:class> |
| |
| <fb:class id="view-selector-class"> |
| <fb:javascript id="view-selector" path="." direction="load"> |
| <fb:load-form> |
| widget.value = "edit"; |
| </fb:load-form> |
| </fb:javascript> |
| </fb:class> |
| |
| <fb:class id="items-class"> |
| <fb:temp-repeater id="items" |
| parent-path="." |
| row-path="*" row-path-insert="." |
| virtual-rows="true"> |
| <fb:on-bind><fb:new id="item-row-class"/></fb:on-bind> |
| </fb:temp-repeater> |
| </fb:class> |
| |
| <fb:class id="item-row-class"> |
| <fb:javascript id="type-selector" path="." direction="load"> |
| <fb:load-form> |
| widget.value = jxpathPointer.getNode().getFirstChild().getLocalName(); |
| </fb:load-form> |
| </fb:javascript> |
| <fb:union id="union" path="."> |
| <fb:new id="aggregate-class"/> |
| <fb:new id="class-class"/> |
| <fb:new id="group-class"/> |
| <fb:new id="javascript-class"/> |
| <fb:new id="new-class"/> |
| <fb:new id="temp-repeater-class"/> |
| <fb:new id="struct-class"/> |
| <fb:new id="union-class"/> |
| <fb:new id="value-class"/> |
| </fb:union> |
| <!-- |
| The view-selector binding must happen last, |
| so that all the widgets will exist that the |
| view-selector's on-value-changed handler needs. |
| --> |
| <fb:new id="view-selector-class"/> |
| </fb:class> |
| |
| </fb:context> |