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 / status.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.8 KB  |  102 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. <xsl:stylesheet version="1.0"
  19.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20.     xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  21.     xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
  22.     xmlns:a="http://xml.apache.org/axis/wsdd/">
  23.     
  24.     <xsl:template match="/">
  25.         <html>
  26.             <head>
  27.                 <title>Cocoon as a SOAP Server</title>
  28.         <link rel="stylesheet" type="text/css" href="/styles/main.css"/>
  29.             </head>
  30.         <body>
  31.             <center><h1>Cocoon SOAP Server Status</h1></center>
  32.  
  33.             <hr/>
  34.  
  35.             <p>
  36.         Welcome to the Cocoon SOAP server status page.
  37.             </p>
  38.             <p>
  39.         These samples use 
  40.         <a href="http://ws.apache.org/axis/">Apache Axis</a> to give access to
  41.         Cocoon components via SOAP.
  42.         </p>
  43.  
  44.             <h2>Active services</h2>
  45.  
  46.             <p>
  47.                 The SOAP server is currently active and the following
  48.                 services are deployed:
  49.             </p>
  50.  
  51.             <p>
  52.                 <ul>
  53.                     <xsl:apply-templates select="/page/soapenv:Envelope/soapenv:Body/a:deployment/a:service"/>
  54.                 </ul>
  55.             </p>
  56.             <xsl:apply-templates select="//calling-examples"/>
  57.         </body>
  58.     </html>
  59.     </xsl:template>
  60.     
  61.     <xsl:template match="a:service">
  62.         <li>
  63.             <p><b><xsl:value-of select="@name"/></b></p>
  64.  
  65.             <p>
  66.                 Class:
  67.  
  68.                 <xsl:apply-templates select="a:parameter[@name='className']"/>
  69.  
  70.                 <br/>
  71.  
  72.                 Provider:
  73.  
  74.                 <i><xsl:value-of select="@provider"/></i>
  75.  
  76.                 <br/>
  77.  
  78.                 Methods:
  79.  
  80.                 <xsl:apply-templates select="a:parameter[@name='allowedMethods']"/>
  81.             </p>
  82.         </li>
  83.     </xsl:template>
  84.  
  85.     <xsl:template match="a:parameter">
  86.         <i><xsl:value-of select="@value"/></i>
  87.     </xsl:template>
  88.  
  89.     <xsl:template match="calling-examples">
  90.     <h2>Client examples</h2>
  91.     <xsl:apply-templates select="example"/>
  92.     </xsl:template>
  93.  
  94.     <xsl:template match="example">
  95.     <h3>Example using <xsl:value-of select="@language"/></h3>
  96.     <pre>
  97.         <xsl:value-of select="."/>
  98.     </pre>
  99.     </xsl:template>
  100.  
  101. </xsl:stylesheet>
  102.