/[Apache-SVN]/cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/stylesheets/sql2html.xsl
ViewVC logotype

Diff of /cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/stylesheets/sql2html.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/stylesheets/sql2html.xsl	2005/05/03 18:18:50	167950
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/stylesheets/sql2html.xsl	2005/05/03 18:22:14	167951
@@ -15,43 +15,52 @@
   limitations under the License.
 -->
 
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                              xmlns:sql="http://apache.org/cocoon/SQL/2.0">
-
+<!--
+  - Transforms sql transformer output into html.
+  - @version $Id$
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:sql="http://apache.org/cocoon/SQL/2.0">
 
   <xsl:import href="../../../common/style/xsl/html/simple-page2html.xsl"/>
 
   <xsl:template match="sql:rowset">
-   <xsl:choose>
-    <xsl:when test="ancestor::sql:rowset">
-     <tr>
-      <td>
-       <table border="1">
-        <xsl:apply-templates/>
-       </table>
-      </td>
-     </tr>
-    </xsl:when>
-    <xsl:otherwise>
-     <table border="1">
-      <xsl:apply-templates/>
-     </table>
-    </xsl:otherwise>
-   </xsl:choose>
+    <xsl:choose>
+      <xsl:when test="ancestor::sql:rowset">
+        <tr>
+          <td>
+            <table border="1">
+              <xsl:apply-templates/>
+            </table>
+          </td>
+        </tr>
+      </xsl:when>
+      <xsl:otherwise>
+        <table border="1">
+          <xsl:apply-templates/>
+        </table>
+      </xsl:otherwise>
+    </xsl:choose>
   </xsl:template>
 
   <xsl:template match="sql:row">
-   <tr>
-    <xsl:apply-templates/>
-   </tr>
+    <tr>
+      <xsl:apply-templates/>
+    </tr>
   </xsl:template>
 
   <xsl:template match="sql:name">
-   <td><xsl:value-of select="."/></td>  
+    <td>
+      <xsl:value-of select="."/>
+      <br/>
+      <xsl:copy-of select="../sql:description/*"/>
+    </td>
   </xsl:template>
 
+  <xsl:template match="sql:description"/>
+
   <xsl:template match="sql:id">
-   <!-- ignore -->
+    <!-- ignore -->
   </xsl:template>
-
 </xsl:stylesheet>

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26