Changeset 473

Show
Ignore:
Timestamp:
06/26/07 18:20:26 (2 years ago)
Author:
laurentj
Message:

added all improvements on jforms from jforms branch, although it isn't finished. stop working on jforms branch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/manifests/jelix-lib.mn

    r447 r473  
    111111  jForms.class.php 
    112112  jFormsBase.class.php 
     113  jFormsBuilderBase.class.php 
    113114  jFormsCompiler.class.php 
    114115  jFormsControl.class.php 
     
    154155  function.formurlparam.php 
    155156  function.diff.php 
     157  block.form.php 
     158  block.formcontrols.php 
     159  function.ctrl_control.php 
     160  function.ctrl_label.php 
     161  function.ctrl_value.php 
    156162 
    157163cd lib/jelix/tpl/plugins/ltx2pdf 
     
    222228  common.ISO-8859-1.properties 
    223229  format.ISO-8859-1.properties 
     230  formserr.ISO-8859-1.properties 
    224231  jelix.ISO-8859-1.properties 
    225232  errors.ISO-8859-1.properties 
     
    231238  common.UTF-8.properties 
    232239  format.UTF-8.properties 
     240  formserr.UTF-8.properties 
    233241  jelix.UTF-8.properties 
    234242  errors.UTF-8.properties 
     
    241249  common.ISO-8859-1.properties 
    242250  format.ISO-8859-1.properties 
     251  formserr.ISO-8859-1.properties 
    243252  jelix.ISO-8859-1.properties 
    244253  errors.ISO-8859-1.properties 
     
    250259  common.UTF-8.properties 
    251260  format.UTF-8.properties 
     261  formserr.UTF-8.properties 
    252262  jelix.UTF-8.properties 
    253263  errors.UTF-8.properties 
     
    260270  common.ISO-8859-1.properties 
    261271  format.ISO-8859-1.properties 
     272  formserr.ISO-8859-1.properties 
    262273  jelix.ISO-8859-1.properties 
    263274  errors.ISO-8859-1.properties 
     
    269280  common.UTF-8.properties 
    270281  format.UTF-8.properties 
     282  formserr.UTF-8.properties 
    271283  jelix.UTF-8.properties 
    272284  errors.UTF-8.properties 
     
    330342cd lib/jelix-www/js 
    331343  tooltip.js 
     344  jforms.js 
    332345cd lib/jelix-www/xul 
    333346  jxulform.css 
  • trunk/build/manifests/jelix-lib.mn

    r447 r473  
    111111  jForms.class.php 
    112112  jFormsBase.class.php 
     113  jFormsBuilderBase.class.php 
    113114  jFormsCompiler.class.php 
    114115  jFormsControl.class.php 
     
    154155  function.formurlparam.php 
    155156  function.diff.php 
     157  block.form.php 
     158  block.formcontrols.php 
     159  function.ctrl_control.php 
     160  function.ctrl_label.php 
     161  function.ctrl_value.php 
    156162 
    157163cd lib/jelix/tpl/plugins/ltx2pdf 
     
    222228  common.ISO-8859-1.properties 
    223229  format.ISO-8859-1.properties 
     230  formserr.ISO-8859-1.properties 
    224231  jelix.ISO-8859-1.properties 
    225232  errors.ISO-8859-1.properties 
     
    231238  common.UTF-8.properties 
    232239  format.UTF-8.properties 
     240  formserr.UTF-8.properties 
    233241  jelix.UTF-8.properties 
    234242  errors.UTF-8.properties 
     
    241249  common.ISO-8859-1.properties 
    242250  format.ISO-8859-1.properties 
     251  formserr.ISO-8859-1.properties 
    243252  jelix.ISO-8859-1.properties 
    244253  errors.ISO-8859-1.properties 
     
    250259  common.UTF-8.properties 
    251260  format.UTF-8.properties 
     261  formserr.UTF-8.properties 
    252262  jelix.UTF-8.properties 
    253263  errors.UTF-8.properties 
     
    260270  common.ISO-8859-1.properties 
    261271  format.ISO-8859-1.properties 
     272  formserr.ISO-8859-1.properties 
    262273  jelix.ISO-8859-1.properties 
    263274  errors.ISO-8859-1.properties 
     
    269280  common.UTF-8.properties 
    270281  format.UTF-8.properties 
     282  formserr.UTF-8.properties 
    271283  jelix.UTF-8.properties 
    272284  errors.UTF-8.properties 
     
    330342cd lib/jelix-www/js 
    331343  tooltip.js 
     344  jforms.js 
    332345cd lib/jelix-www/xul 
    333346  jxulform.css 
  • trunk/build/manifests/testapp.mn

    r468 r473  
    109109  jdb.1_queries.html.php 
    110110  jdb.2_queries_with_pdo.html.php 
     111  jforms.compiler.html.php 
    111112  jtpl.expressions_parsing.html_cli.php 
    112113  utils.jfilter.html_cli.php 
  • trunk/build/manifests/testapp.mn

    r468 r473  
    109109  jdb.1_queries.html.php 
    110110  jdb.2_queries_with_pdo.html.php 
     111  jforms.compiler.html.php 
    111112  jtpl.expressions_parsing.html_cli.php 
    112113  utils.jfilter.html_cli.php 
  • trunk/lib/jelix-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties

    r97 r473  
    22unknow.tag=(801) unknow tag %1$s  (file %2$s) 
    33attribute.missing=(802) attribut %1$s is missing on %2$s (file %3$s) 
    4 datatype.unknow=(803) unknow datatype %1$s  on %2$s (file %3$s) 
     4attribute.not.allowed=(803) attribut %1$s not allowed on %2$s (file %3$s) 
     5datatype.unknow=(804) unknow datatype %1$s  on %2$s (file %3$s) 
     6invalid.xml.file=(805) invalid xml syntax in jforms file (file %s) 
    57 
     8js.err.invalid= "%s" field is invalid 
     9js.err.required= "%s" field is required 
     10 
  • trunk/lib/jelix-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties

    r97 r473  
    22unknow.tag=(801) unknow tag %1$s  (file %2$s) 
    33attribute.missing=(802) attribut %1$s is missing on %2$s (file %3$s) 
    4 datatype.unknow=(803) unknow datatype %1$s  on %2$s (file %3$s) 
     4attribute.not.allowed=(803) attribut %1$s not allowed on %2$s (file %3$s) 
     5datatype.unknow=(804) unknow datatype %1$s  on %2$s (file %3$s) 
     6invalid.xml.file=(805) invalid xml syntax in jforms file (file %s) 
    57 
     8js.err.invalid= "%s" field is invalid 
     9js.err.required= "%s" field is required 
     10 
  • trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties

    r97 r473  
    22unknow.tag=(801) balise %1$s inconnue (fichier %2$s) 
    33attribute.missing=(802) attribut %1$s manquant sur %2$s (fichier %3$s) 
    4 datatype.unknow=(803) datatype inconnu %1$s sur %2$s (fichier %3$s) 
     4attribute.not.allowed=(803) attribut %1$s non permis sur %2$s (fichier %3$s) 
     5datatype.unknow=(804) datatype inconnu %1$s sur %2$s (fichier %3$s) 
     6invalid.xml.file=(805) erreur de syntaxe xml dans un fichier jforms (fichier %s) 
    57 
     8js.err.invalid=La saisie de "%s" est invalide 
     9js.err.required=La saisie de "%s" est obligatoire 
  • trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties

    r97 r473  
    22unknow.tag=(801) balise %1$s inconnue (fichier %2$s) 
    33attribute.missing=(802) attribut %1$s manquant sur %2$s (fichier %3$s) 
    4 datatype.unknow=(803) datatype inconnu %1$s sur %2$s (fichier %3$s) 
     4attribute.not.allowed=(803) attribut %1$s non permis sur %2$s (fichier %3$s) 
     5datatype.unknow=(804) datatype inconnu %1$s sur %2$s (fichier %3$s) 
     6invalid.xml.file=(805) erreur de syntaxe xml dans un fichier jforms (fichier %s) 
    57 
     8js.err.invalid=La saisie de "%s" est invalide 
     9js.err.required=La saisie de "%s" est obligatoire 
  • trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.UTF-8.properties

    r112 r473  
    22unknow.tag=(801) balise %1$s inconnue (fichier %2$s) 
    33attribute.missing=(802) attribut %1$s manquant sur %2$s (fichier %3$s) 
    4 datatype.unknow=(803) datatype inconnu %1$s sur %2$s (fichier %3$s) 
     4attribute.not.allowed=(803) attribut %1$s non permis sur %2$s (fichier %3$s) 
     5datatype.unknow=(804) datatype inconnu %1$s sur %2$s (fichier %3$s) 
     6invalid.xml.file=(805) erreur de syntaxe xml dans un fichier jforms (fichier %s) 
    57 
     8js.err.invalid=La saisie de "%s" est invalide 
     9js.err.required=La saisie de "%s" est obligatoire 
  • trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.UTF-8.properties

    r112 r473  
    22unknow.tag=(801) balise %1$s inconnue (fichier %2$s) 
    33attribute.missing=(802) attribut %1$s manquant sur %2$s (fichier %3$s) 
    4 datatype.unknow=(803) datatype inconnu %1$s sur %2$s (fichier %3$s) 
     4attribute.not.allowed=(803) attribut %1$s non permis sur %2$s (fichier %3$s) 
     5datatype.unknow=(804) datatype inconnu %1$s sur %2$s (fichier %3$s) 
     6invalid.xml.file=(805) erreur de syntaxe xml dans un fichier jforms (fichier %s) 
    57 
     8js.err.invalid=La saisie de "%s" est invalide 
     9js.err.required=La saisie de "%s" est obligatoire 
  • trunk/lib/jelix/core/jSelector.class.php

    r444 r473  
    658658    } 
    659659 
    660     public function getCompiledBuildFilePath (){ 
    661         return JELIX_APP_TEMP_PATH.'compiled/'.$this->_dirname.$this->module.'~'.$this->resource.'_htmlbuilder'.$this->_cacheSuffix;
     660    public function getCompiledBuilderFilePath ($type){ 
     661        return JELIX_APP_TEMP_PATH.'compiled/'.$this->_dirname.$this->module.'~'.$this->resource.'_builder_'.$type.$this->_cacheSuffix
    662662    } 
    663663} 
  • trunk/lib/jelix/core/jSelector.class.php

    r444 r473  
    658658    } 
    659659 
    660     public function getCompiledBuildFilePath (){ 
    661         return JELIX_APP_TEMP_PATH.'compiled/'.$this->_dirname.$this->module.'~'.$this->resource.'_htmlbuilder'.$this->_cacheSuffix;
     660    public function getCompiledBuilderFilePath ($type){ 
     661        return JELIX_APP_TEMP_PATH.'compiled/'.$this->_dirname.$this->module.'~'.$this->resource.'_builder_'.$type.$this->_cacheSuffix
    662662    } 
    663663} 
  • trunk/lib/jelix/docs/ns/jforms-controls.rng

    r386 r473  
    66     <attribute name="ref" /> 
    77     <ref name="label" /> 
    8      <zeroOrMore> 
     8     <!--<zeroOrMore> 
    99        <choice> 
    1010           <ref name="help" /> 
    1111           <ref name="hint" /> 
    1212           <ref name="alert" /> 
    13            <!--<ref name="actions" />--
     13           <ref name="actions" /
    1414        </choice> 
    15      </zeroOrMore> 
    16   </define> 
    17    
     15     </zeroOrMore>--> 
     16  </define> 
     17  <!-- 
    1818  <define name="UI.Common.Attrs"> 
    1919       
    20   </define> 
     20  </define>--> 
    2121   
    2222   
    2323  <define name="UI.Common.data"> 
    2424      <optional><ref name="datatypes" /></optional> 
     25      <ref name="UI.attr.readonly" /> 
     26      <optional><attribute name="required"><choice><value>true</value><value>false</value></choice></attribute></optional> 
     27  </define> 
     28   
     29  <define name="UI.attr.readonly"> 
    2530      <optional><attribute name="readonly"><choice><value>true</value><value>false</value></choice></attribute></optional> 
    26       <optional><attribute name="required"><choice><value>true</value><value>false</value></choice></attribute></optional
    27   </define> 
    28  
     31  </define
     32 
     33   
    2934  <define name="List.UI.Common"> 
    3035     <choice> 
     
    3439        <ref name="daodatasource" /> 
    3540    </choice> 
    36      <optional> 
    37          <attribute name="appearance"> 
    38              <choice> 
    39                  <value>full</value> 
    40                  <value>compact</value> 
    41                  <value>minimal</value> 
     41  </define> 
     42   
     43  <define name="item"> 
     44     <element name="item"> 
     45         <optional> 
     46            <choice> 
     47                <attribute name="label" /> 
     48                <attribute name="labellocale" /> 
    4249             </choice> 
    43          </attribute> 
    44       </optional> 
    45   </define> 
    46  
     50         </optional> 
     51         <attribute name="value" /> 
     52     </element> 
     53  </define> 
     54   
    4755  <define name="datatypes"> 
    48      <choice
     56     <!--<choice>--
    4957        <ref name="datatype.attr"/> 
    50         <element name="datatype"> 
     58     <!--   <element name="datatype"> 
    5159           <ref name="datatype.attr"/> 
    5260           <optional><attribute name="length" /></optional> 
     
    5765           <optional><attribute name="minvalue" /></optional> 
    5866           <empty /> 
    59         </element> 
     67        </element>--> 
    6068  </define> 
    6169 
     
    8492      <attribute name="daovalueproperty" /> 
    8593  </define> 
    86    
     94 
    8795  <!--  Controls       --> 
    88  
    89  
    9096   <define name="controls"> 
    9197      <oneOrMore> 
     
    96102            <ref name="output" /> 
    97103            <ref name="upload" /> 
    98             <ref name="select1" /> 
    99             <ref name="select" /> 
    100104            <ref name="submit" /> 
     105            <ref name="checkbox" /> 
     106            <ref name="checkboxes" /> 
     107            <ref name="listbox" /> 
     108            <ref name="radiobuttons"/> 
     109            <ref name="menulist" /> 
    101110            <!-- 
    102111            <ref name="range" /> 
     
    112121     <element name="input"> 
    113122       <ref name="UI.Common" /> 
     123       <ref name="UI.Common.data" /> 
    114124     </element> 
    115125  </define> 
     
    131141     <element name="upload"> 
    132142       <ref name="UI.Common" /> 
    133        <attribute name="mediatype" /> <!-- indique les types autorisés --> 
    134      </element> 
    135   </define> 
    136  
     143       <!--<attribute name="mediatype" /> --> 
     144     </element> 
     145  </define> 
     146   
     147  <define name="checkbox"> 
     148     <element name="checkbox"> 
     149       <ref name="UI.Common" /> 
     150       <ref name="UI.attr.readonly" /> 
     151     </element> 
     152  </define> 
     153 
     154<!-- 
    137155  <define name="select1"> 
    138156     <element name="select1"> 
    139157       <ref name="UI.Common" /> 
    140        <ref name="UI.Common.Attrs" /> 
    141        <ref name="List.UI.Common" /> 
    142        <!-- saisie libre autorisée --> 
    143        <!--<optional> 
    144            <attribute name="selection"> 
     158       <ref name="List.UI.Common" /> 
     159       <optional> 
     160         <attribute name="appearance"> 
    145161             <choice> 
    146                  <value>open</value> 
    147                  <value>close</value> 
    148               </choice> 
    149            </attribute> 
    150        </optional>--> 
    151      </element> 
    152   </define> 
    153  
    154  
    155   <define name="select"> 
     162                 <value>radiobuttons</value> 
     163                 <value>listbox</value> 
     164                 <value>menulist</value> 
     165             </choice> 
     166         </attribute> 
     167      </optional>  
     168     </element> 
     169  </define> 
     170--> 
     171  <define name="radiobuttons"> 
     172     <element name="radiobuttons"> 
     173       <ref name="UI.Common" /> 
     174       <ref name="List.UI.Common" /> 
     175     </element> 
     176  </define> 
     177 
     178  <define name="listbox"> 
     179     <element name="radiobuttons"> 
     180       <ref name="UI.Common" /> 
     181       <ref name="List.UI.Common" /> 
     182       <optional> 
     183            <attribute name="multiple"> 
     184                <choice><value>true</value><value>false</value></choice> 
     185            </attribute> 
     186       </optional> 
     187     </element> 
     188  </define> 
     189 
     190  <define name="menulist"> 
     191     <element name="radiobuttons"> 
     192       <ref name="UI.Common" /> 
     193       <ref name="List.UI.Common" /> 
     194     </element> 
     195  </define> 
     196 
     197<!--  <define name="select"> 
    156198     <element name="select"> 
    157199       <ref name="UI.Common" /> 
    158        <ref name="UI.Common.Attrs" /> 
    159        <ref name="List.UI.Common" /> 
    160        <!--<optional> 
    161            <attribute name="selection"> 
     200       <ref name="List.UI.Common" /> 
     201       <optional> 
     202         <attribute name="appearance"> 
    162203             <choice> 
    163                  <value>open</value> 
    164                  <value>close</value> 
    165               </choice> 
    166            </attribute> 
    167        </optional>--> 
    168      </element> 
    169   </define> 
    170  
     204                 <value>checkbox</value> 
     205                 <value>listbox</value> 
     206             </choice> 
     207         </attribute> 
     208      </optional>  
     209     </element> 
     210  </define>--> 
     211 
     212  <define name="checkboxes"> 
     213     <element name="checkboxes"> 
     214       <ref name="UI.Common" /> 
     215       <ref name="List.UI.Common" /> 
     216     </element> 
     217  </define> 
     218 
     219   
    171220  <define name="output"> 
    172221     <element name="output"> 
    173222       <ref name="UI.Common" /> 
    174        <ref name="UI.Common.Attrs" /> 
    175        <optional><attribute name="value"/></optional> 
     223       <!--<optional><attribute name="value"/></optional>--> 
    176224     </element> 
    177225  </define> 
     
    180228     <element name="submit"> 
    181229       <ref name="UI.Common" /> 
    182        <ref name="UI.Common.Attrs" /> 
    183        <optional><attribute name="value"/></optional> 
    184      </element> 
    185   </define> 
    186  
     230       <!--<optional><attribute name="value"/></optional>--> 
     231     </element> 
     232  </define> 
     233--> 
    187234   
    188235  <!-- 
     
    217264  <define name="label"> 
    218265     <element name="label"> 
    219         <choice> 
    220             <ref name="message.content" /> 
    221             <attribute name="locale" /> 
    222         </choice> 
    223      </element> 
    224   </define> 
    225  
     266        <ref name="message.content" /> 
     267     </element> 
     268  </define> 
     269 
     270  <!-- 
    226271  <define name="hint"> 
    227272     <element name="hint"> 
     
    241286     </element> 
    242287  </define> 
    243  
    244   <define name="item"> 
    245      <element name="item"> 
    246          <choice> 
    247              <ref name="label" /> 
    248              <attribute name="label" /> 
    249              <attribute name="labellocale" /> 
    250          </choice> 
    251          <attribute name="value" /> 
    252      </element> 
    253   </define> 
     288--> 
     289 
    254290 
    255291</grammar> 
  • trunk/lib/jelix/docs/ns/jforms-controls.rng

    r386 r473  
    66     <attribute name="ref" /> 
    77     <ref name="label" /> 
    8      <zeroOrMore> 
     8     <!--<zeroOrMore> 
    99        <choice> 
    1010           <ref name="help" /> 
    1111           <ref name="hint" /> 
    1212           <ref name="alert" /> 
    13            <!--<ref name="actions" />--
     13           <ref name="actions" /
    1414        </choice> 
    15      </zeroOrMore> 
    16   </define> 
    17    
     15     </zeroOrMore>--> 
     16  </define> 
     17  <!-- 
    1818  <define name="UI.Common.Attrs"> 
    1919       
    20   </define> 
     20  </define>--> 
    2121   
    2222   
    2323  <define name="UI.Common.data"> 
    2424      <optional><ref name="datatypes" /></optional> 
     25      <ref name="UI.attr.readonly" /> 
     26      <optional><attribute name="required"><choice><value>true</value><value>false</value></choice></attribute></optional> 
     27  </define> 
     28   
     29  <define name="UI.attr.readonly"> 
    2530      <optional><attribute name="readonly"><choice><value>true</value><value>false</value></choice></attribute></optional> 
    26       <optional><attribute name="required"><choice><value>true</value><value>false</value></choice></attribute></optional
    27   </define> 
    28  
     31  </define
     32 
     33   
    2934  <define name="List.UI.Common"> 
    3035     <choice> 
     
    3439        <ref name="daodatasource" /> 
    3540    </choice> 
    36      <optional> 
    37          <attribute name="appearance"> 
    38              <choice> 
    39                  <value>full</value> 
    40                  <value>compact</value> 
    41                  <value>minimal</value> 
     41  </define> 
     42   
     43  <define name="item"> 
     44     <element name="item"> 
     45         <optional> 
     46            <choice> 
     47                <attribute name="label" /> 
     48                <attribute name="labellocale" /> 
    4249             </choice> 
    43          </attribute> 
    44       </optional> 
    45   </define> 
    46  
     50         </optional> 
     51         <attribute name="value" /> 
     52     </element> 
     53  </define> 
     54   
    4755  <define name="datatypes"> 
    48      <choice
     56     <!--<choice>--
    4957        <ref name="datatype.attr"/> 
    50         <element name="datatype"> 
     58     <!--   <element name="datatype"> 
    5159           <ref name="datatype.attr"/> 
    5260           <optional><attribute name="length" /></optional> 
     
    5765           <optional><attribute name="minvalue" /></optional> 
    5866           <empty /> 
    59         </element> 
     67        </element>--> 
    6068  </define> 
    6169 
     
    8492      <attribute name="daovalueproperty" /> 
    8593  </define> 
    86    
     94 
    8795  <!--  Controls       --> 
    88  
    89  
    9096   <define name="controls"> 
    9197      <oneOrMore> 
     
    96102            <ref name="output" /> 
    97103            <ref name="upload" /> 
    98             <ref name="select1" /> 
    99             <ref name="select" /> 
    100104            <ref name="submit" /> 
     105            <ref name="checkbox" /> 
     106            <ref name="checkboxes" /> 
     107            <ref name="listbox" /> 
     108            <ref name="radiobuttons"/> 
     109            <ref name="menulist" /> 
    101110            <!-- 
    102111            <ref name="range" /> 
     
    112121     <element name="input"> 
    113122       <ref name="UI.Common" /> 
     123       <ref name="UI.Common.data" /> 
    114124     </element> 
    115125  </define> 
     
    131141     <element name="upload"> 
    132142       <ref name="UI.Common" /> 
    133        <attribute name="mediatype" /> <!-- indique les types autorisés --> 
    134      </element> 
    135   </define> 
    136  
     143       <!--<attribute name="mediatype" /> --> 
     144     </element> 
     145  </define> 
     146   
     147  <define name="checkbox"> 
     148     <element name="checkbox"> 
     149       <ref name="UI.Common" /> 
     150       <ref name="UI.attr.readonly" /> 
     151     </element> 
     152  </define> 
     153 
     154<!-- 
    137155  <define name="select1"> 
    138156     <element name="select1"> 
    139157       <ref name="UI.Common" /> 
    140        <ref name="UI.Common.Attrs" /> 
    141        <ref name="List.UI.Common" /> 
    142        <!-- saisie libre autorisée --> 
    143        <!--<optional> 
    144            <attribute name="selection"> 
     158       <ref name="List.UI.Common" /> 
     159       <optional> 
     160         <attribute name="appearance"> 
    145161             <choice> 
    146                  <value>open</value> 
    147                  <value>close</value> 
    148               </choice> 
    149            </attribute> 
    150        </optional>--> 
    151      </element> 
    152   </define> 
    153  
    154  
    155   <define name="select"> 
     162                 <value>radiobuttons</value> 
     163                 <value>listbox</value> 
     164                 <value>menulist</value> 
     165             </choice> 
     166         </attribute> 
     167      </optional>  
     168     </element> 
     169  </define> 
     170--> 
     171  <define name="radiobuttons"> 
     172     <element name="radiobuttons"> 
     173       <ref name="UI.Common" /> 
     174       <ref name="List.UI.Common" /> 
     175     </element> 
     176  </define> 
     177 
     178  <define name="listbox"> 
     179     <element name="radiobuttons"> 
     180       <ref name="UI.Common" /> 
     181       <ref name="List.UI.Common" /> 
     182       <optional> 
     183            <attribute name="multiple"> 
     184                <choice><value>true</value><value>false</value></choice> 
     185            </attribute> 
     186       </optional> 
     187     </element> 
     188  </define> 
     189 
     190  <define name="menulist"> 
     191     <element name="radiobuttons"> 
     192       <ref name="UI.Common" /> 
     193       <ref name="List.UI.Common" /> 
     194     </element> 
     195  </define> 
     196 
     197<!--  <define name="select"> 
    156198     <element name="select"> 
    157199       <ref name="UI.Common" /> 
    158        <ref name="UI.Common.Attrs" /> 
    159        <ref name="List.UI.Common" /> 
    160        <!--<optional> 
    161            <attribute name="selection"> 
     200       <ref name="List.UI.Common" /> 
     201       <optional> 
     202         <attribute name="appearance"> 
    162203             <choice> 
    163                  <value>open</value> 
    164                  <value>close</value> 
    165               </choice> 
    166            </attribute> 
    167        </optional>--> 
    168      </element> 
    169   </define> 
    170  
     204                 <value>checkbox</value> 
     205                 <value>listbox</value> 
     206             </choice> 
     207         </attribute> 
     208      </optional>  
     209     </element> 
     210  </define>--> 
     211 
     212  <define name="checkboxes"> 
     213     <element name="checkboxes"> 
     214       <ref name="UI.Common" /> 
     215       <ref name="List.UI.Common" /> 
     216     </element> 
     217  </define> 
     218 
     219   
    171220  <define name="output"> 
    172221     <element name="output"> 
    173222       <ref name="UI.Common" /> 
    174        <ref name="UI.Common.Attrs" /> 
    175        <optional><attribute name="value"/></optional> 
     223       <!--<optional><attribute name="value"/></optional>--> 
    176224     </element> 
    177225  </define> 
     
    180228     <element name="submit"> 
    181229       <ref name="UI.Common" /> 
    182        <ref name="UI.Common.Attrs" /> 
    183        <optional><attribute name="value"/></optional> 
    184      </element> 
    185   </define> 
    186  
     230       <!--<optional><attribute name="value"/></optional>--> 
     231     </element> 
     232  </define> 
     233--> 
    187234   
    188235  <!-- 
     
    217264  <define name="label"> 
    218265     <element name="label"> 
    219         <choice> 
    220             <ref name="message.content" /> 
    221             <attribute name="locale" /> 
    222         </choice> 
    223      </element> 
    224   </define> 
    225  
     266        <ref name="message.content" /> 
     267     </element> 
     268  </define> 
     269 
     270  <!-- 
    226271  <define name="hint"> 
    227272     <element name="hint"> 
     
    241286     </element> 
    242287  </define> 
    243  
    244   <define name="item"> 
    245      <element name="item"> 
    246          <choice> 
    247              <ref name="label" /> 
    248              <attribute name="label" /> 
    249              <attribute name="labellocale" /> 
    250          </choice> 
    251          <attribute name="value" /> 
    252      </element> 
    253   </define> 
     288--> 
     289 
    254290 
    255291</grammar> 
  • trunk/lib/jelix/docs/ns/jforms.rng

    r386 r473  
    1212      </element> 
    1313   </start> 
    14  
     14<!-- 
    1515  <define name="Common.Attributes"> 
    1616 
    1717  </define> 
    18  
    19  
    20  
     18--> 
     19<!-- 
    2120   <define name="any"> 
    2221      <element> 
     
    3332      </element> 
    3433   </define> 
    35