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 / parent.xhtml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  3.2 KB  |  118 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. <html xmlns:core="urn:apache:taglib:core" xmlns:dt="urn:apache:taglib:datetime"
  18.          xmlns:i18n="urn:apache:taglib:i18n" xmlns:jxpath="urn:apache:taglib:jxpath:core"
  19.          xmlns:string="urn:apache:taglib:string" xmlns:test="urn:apache:taglib:test">
  20.  
  21.     <title>Tag Test</title>
  22.       <h2>tag test</h2>
  23.       <i18n:locale localeRef="$session/locale" >
  24.       
  25.       <h3>forEach</h3>
  26.       <p>
  27.       
  28.       <table border="1" cellspaceing="0" cellpadding="5">
  29.       <tr>
  30.       <td>
  31.       <ul>        
  32.           <jxpath:forEach varStatus="n" var="i" begin="2" end="10" step="2">
  33.             <li><jxpath:out value="$n/count" />. that's number <jxpath:out value="i" /></li>
  34.           </jxpath:forEach>
  35.       </ul>
  36.       </td>
  37.       <td>
  38.       <ul><br/>
  39.       <jxpath:forEach varStatus="n" var="i" begin="2" end="10" step="2">
  40. <br/>       <li><jxpath:out value="$n/count"
  41. />. that's number <jxpath:out value="i" /></li>
  42. <br/></jxpath:forEach><br/>
  43.       </ul>
  44.       </td>
  45.       </tr>
  46.       </table>
  47.       </p>
  48.  
  49.       <ul>        
  50.           <jxpath:forEach varStatus="n" var="i" items="$request/BrowserLocales" >
  51.             <li><jxpath:out value="$n/count" />. <jxpath:out value="$i/language" /></li>
  52.           </jxpath:forEach>
  53.       </ul>
  54.  
  55.  
  56.       <ul>        
  57.           <jxpath:forEach varStatus="n" var="j" items="$session/RequestInfo" >
  58.             <li><jxpath:out value="$n/count" />. <jxpath:out value="j" /></li>
  59.           </jxpath:forEach>
  60.       </ul>
  61.       
  62.     <jxpath:out value="$session/RequestInfo[5]/language" />
  63.       
  64.       <h3>locale</h3>
  65.       <i18n:locale language="en">
  66.       <p>
  67.         <form>
  68.         <table border="1" >
  69.         <tr>
  70.               <i18n:locale>
  71.             <td>session language</td>
  72.             <td>
  73.               <select size="1" name="month">
  74.             <dt:months var="mon">
  75.                 <option><jxpath:out value="$mon/month" /></option>
  76.             </dt:months>
  77.             </select>
  78.             </td>
  79.             </i18n:locale>
  80.         </tr>
  81.         <tr>
  82.               <i18n:locale language="de" country="DE">
  83.             <td>german</td>
  84.             <td>
  85.               <select size="1" name="month">
  86.             <dt:months var="mon">
  87.                 <option><jxpath:out value="$mon/month" /></option>
  88.             </dt:months>
  89.             </select>
  90.             </td>
  91.             </i18n:locale>
  92.         </tr>
  93.         <tr>
  94.         <td colspan="2">
  95.             <i18n:locale><br/>
  96.             <td><br/>
  97.             <select size="1" name="month"><br/>
  98.             <dt:months var="mon"><br/>
  99.             <option><jxpath:out value="$mon/month" /></option><br/>
  100.             </dt:months><br/>
  101.             </select><br/>
  102.             </td><br/>
  103.             </i18n:locale><br/>
  104.         </td>
  105.         </tr>
  106.         </table>
  107.         </form>
  108.       </p>
  109.       </i18n:locale>
  110.  
  111.   </i18n:locale>
  112.  
  113.   <p>
  114.   <a href="TaglibTest.xhtml">Back</a>
  115.   </p>
  116.       
  117. </html>
  118.