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 / sql-page.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  1.3 KB  |  42 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. <page xmlns:sql="http://apache.org/cocoon/SQL/2.0">
  19.  
  20.  <title>Hello</title>
  21.     <resources>
  22.        <resource type="file" href="sql-page.xml.sql">Schema</resource>
  23.        <resource type="doc" href="userdocs/transformers/sql-transformer.html">SQL Transformer</resource>
  24.     </resources>
  25.  <content>
  26.   <para>This is my first Cocoon2 page filled with sql data!</para>
  27.  
  28.   <execute-query xmlns="http://apache.org/cocoon/SQL/2.0"> 
  29.    <query>
  30.         select id,name from department
  31.    </query>
  32.    <execute-query>
  33.     <query>
  34.      select id,name from employee where department_id = <ancestor-value sql:name="id" sql:level="1"/>
  35.     </query>
  36.    </execute-query>
  37.   </execute-query>
  38.  
  39.  </content>
  40. </page>
  41.  
  42.