[jboss-svn-commits] JBL Code SVN: r30421 - labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/database/oracle.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Dec 1 12:46:03 EST 2009


Author: whitingjr
Date: 2009-12-01 12:46:03 -0500 (Tue, 01 Dec 2009)
New Revision: 30421

Modified:
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/database/oracle/oracle.xsl
Log:
Tried to add transformation to process XA datasource properties.


Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/database/oracle/oracle.xsl
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/database/oracle/oracle.xsl	2009-12-01 17:44:45 UTC (rev 30420)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/database/oracle/oracle.xsl	2009-12-01 17:46:03 UTC (rev 30421)
@@ -2,30 +2,74 @@
 <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    
-   <xsl:template match="@*|node()">
+   <xsl:template match="/">
       <xsl:copy>
-         <xsl:apply-templates select="@*|node()"/>
+         <xsl:apply-templates />
       </xsl:copy>
    </xsl:template>
    
-   <xsl:template match="node()">
+   <xsl:template match="*">
+      <!-- xsl:choose>
+         <xsl:when test="name()='entry'">
+            entry
+            value of node[<xsl:value-of select="."/>]
+            value of child key node[<xsl:value-of select="./key"/>]
+         </xsl:when>
+      </xsl:choose>
+      
       <xsl:choose>
-         <xsl:when test="@name='minSize'">
+         <xsl:when test="name()='key'">
+            key
+            value of node[<xsl:value-of select="."/>]
          </xsl:when>
-         <xsl:when test="@name='maxSize'">
+      </xsl:choose-->
+      
+      <xsl:choose>
+         <xsl:when test="'MaxSize'=key">
+            [found]
          </xsl:when>
-         <xsl:when test="@name='blockingTimeout'">
+         <xsl:when test="key[.='MaxSize']">
+            [found]
          </xsl:when>
-         <xsl:when test="@name='idleTimeout'">
+         <xsl:when test="key='MaxSize'">
+            [found]
          </xsl:when>
-         <xsl:when test="@name='url'">
-            <xsl:copy>
-               <xsl:attribute name="name">
-                  <xsl:text>URL</xsl:text>
-               </xsl:attribute>
-               <xsl:value-of select="."/>
-            </xsl:copy>
+         <xsl:when test="./entry/key='MaxSize'">
+            [found]
          </xsl:when>
+         <xsl:when test="./entry/key/.='MaxSize'">
+            [found]
+         </xsl:when>
+         <xsl:when test="./entry/key/.='MaxSize'">
+            [found]
+         </xsl:when>
+         <xsl:when test="contains(./entry/key, 'MaxSize')">
+            [found]
+         </xsl:when>
+         <xsl:when test="starts-with(./entry/key, 'MaxSize')">
+            [found]
+         </xsl:when>
+         <xsl:when test='entry/key[.=""]'>
+            [found]
+         </xsl:when>
+         <xsl:when test="entry/key[.='']">
+            [found]
+         </xsl:when>
+         <xsl:when test="key[.='']">
+            [found]
+         </xsl:when>
+         <xsl:when test="value='orcl'">
+            [orcl found]
+         </xsl:when>
+         <xsl:when test="value=orcl">
+            [orcl found]
+         </xsl:when><!-- None of these match !  Use property resolving instead :( -->
+         
+         <xsl:when test=".='url'">
+            <xsl:element name="{name()}">
+               <xsl:text>URL</xsl:text>
+            </xsl:element>
+         </xsl:when>
          <xsl:otherwise>
             <xsl:copy>
                <xsl:copy-of select="@*"/>



More information about the jboss-svn-commits mailing list