home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / 02lenient-bind.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.1 KB  |  55 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17.  
  18. <fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" 
  19.             xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" 
  20.         path="/" 
  21.         direction="load" >
  22.  
  23. <!-- 
  24.    | This file shows the inheritance behaviour of the @lenient setting 
  25.    | on the various bindings in the framework. 
  26.    | You will need to edit the backend-model in the script to see the effect
  27.    |  see: ../../flow/bindings.js#createLenientTestObject()
  28.    -->
  29.    
  30.   <!-- following 3 bindings work identical, see how inheritance and
  31.        default settings do their work -->
  32.         
  33.   <fb:context path="one" lenient="false">
  34.     <!-- to override inherit from .. explicitely set 'true' -->
  35.     <fb:value id="anyfield" path="surviveField" lenient="true" />
  36.     <!-- inherit from .. becomes 'false' -->
  37.     <fb:value id="anyfield" path="breakingField" />
  38.   </fb:context>
  39.             
  40.   <fb:context path="two" lenient="true">
  41.     <!-- inherit from .. becomes 'true' -->
  42.     <fb:value id="anyfield" path="surviveField" />
  43.     <!-- to override inherit from .. explicitely set 'false' -->
  44.     <fb:value id="anyfield" path="breakingField" lenient="false"/>
  45.   </fb:context>
  46.             
  47.   <fb:context path="three" >
  48.     <!-- inherit from ../.. becomes 'true' (the default for the root) -->
  49.     <fb:value id="anyfield" path="surviveField" />
  50.     <!-- to override inherit from ../.. explicitely set 'false' -->
  51.     <fb:value id="anyfield" path="breakingField" lenient="false"/>
  52.   </fb:context>
  53.  
  54. </fb:context>
  55.