[jboss-svn-commits] JBL Code SVN: r30718 - in labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl: jdbc-datasource and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Dec 16 11:48:00 EST 2009


Author: whitingjr
Date: 2009-12-16 11:48:00 -0500 (Wed, 16 Dec 2009)
New Revision: 30718

Added:
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/jdbc-datasource/
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/jdbc-datasource/prepare-jdbc-resolving-properties.xsl
Log:
Added to expand the properties for Ant.

Added: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/jdbc-datasource/prepare-jdbc-resolving-properties.xsl
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/jdbc-datasource/prepare-jdbc-resolving-properties.xsl	                        (rev 0)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/xsl/jdbc-datasource/prepare-jdbc-resolving-properties.xsl	2009-12-16 16:48:00 UTC (rev 30718)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
+   xmlns="urn:jboss:bean-deployer:2.0">
+   
+	<xsl:param name="resource.A.jdbc" />
+	<xsl:param name="resource.B.jdbc" />
+   
+   <!-- The reason for this stylesheet is to expand these two properties. Ant does not like expanding
+   nested properties. The curley braces cause it to ignore nesting. -->	
+   
+   
+	<xsl:template match="/*">
+	  <xsl:copy>
+         <xsl:attribute name="xsi:schemaLocation" xmlns="xsi"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >urn:jboss:bean-deployer bean-deployer_1_0.xsd</xsl:attribute>
+	     <xsl:text>${</xsl:text><xsl:value-of select="$resource.A.jdbc"/><xsl:text>.datasoure.xml.A}</xsl:text>
+	     <xsl:text>${</xsl:text><xsl:value-of select="$resource.B.jdbc"/><xsl:text>.datasoure.xml.B}</xsl:text>
+	  </xsl:copy>
+	</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file



More information about the jboss-svn-commits mailing list