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 / resolver.xsp < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  1.9 KB  |  51 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. <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
  18.                           xmlns:util="http://apache.org/xsp/util/2.0"
  19.                           xmlns:xsp-request="http://apache.org/xsp/request/2.0">
  20.  
  21.   <page>
  22.     <title>An XSP Page using a source</title>
  23.     <content>
  24.       <!-- obtain an InputStream -->
  25.       <p>this is the colorized source code of this page, included as text:</p>
  26.       <table align="center" width="90%" bgcolor="#d0FFFF" border="1">
  27.         <tr>
  28.           <td>
  29.             <pre>
  30.               <util:get-source>
  31.                 <util:param name="uri">cocoon:/view-source?filename=<xsp-request:get-servlet-path/>.xsp</util:param>
  32.               </util:get-source>
  33.             </pre>          
  34.           </td>
  35.         </tr>
  36.       </table>
  37.       <!-- obtain an InputSource instead of an InputStream -->
  38.       <p>this is the colorized source code of this page, included as XML:</p>
  39.       <table align="center" width="90%" bgcolor="#d0FFFF" border="1">
  40.         <tr>
  41.           <td>
  42.             <util:include-source>
  43.               <util:param name="uri">cocoon:/view-source?filename=<xsp-request:get-servlet-path/>.xsp&cocoon-view=content</util:param>
  44.             </util:include-source>
  45.           </td>
  46.         </tr>
  47.       </table>
  48.     </content>
  49.   </page>
  50. </xsp:page>
  51.