[jboss-svn-commits] JBL Code SVN: r17380 - labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Dec 23 06:27:06 EST 2007
Author: beve
Date: 2007-12-23 06:27:05 -0500 (Sun, 23 Dec 2007)
New Revision: 17380
Modified:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML/SampleOrder.csv
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML/smooks-res.xml
Log:
Work for JBESB-1424 "transform_CSV2XML quickstart does not handle multiple rows in input"
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML/SampleOrder.csv
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML/SampleOrder.csv 2007-12-23 07:53:26 UTC (rev 17379)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML/SampleOrder.csv 2007-12-23 11:27:05 UTC (rev 17380)
@@ -1 +1,4 @@
1,Wed Nov 15 13:45:28 EST 2006,0,59.97,64.92,4.95,user1,Harry,Fletcher,SD,1,1,364,The 40-Year-Old Virgin,29.98,2,1,299,Pulp Fiction,29.99
+2,Wed Nov 15 13:45:28 EST 2007,0,60.00,64.92,4.95,user2,Kalle,Anka,SD,1,1,364,Fletch,29.98,2,1,299,Fletch Lives,29.99
+3,Wed Nov 15 13:45:28 EST 2007,0,60.00,64.92,4.95,user3,Donald,Duck,SD,1,1,364,The Goonies,29.98,2,1,4,Happy Gilmor,29.99
+
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML/smooks-res.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML/smooks-res.xml 2007-12-23 07:53:26 UTC (rev 17379)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/transform_CSV2XML/smooks-res.xml 2007-12-23 11:27:05 UTC (rev 17380)
@@ -30,6 +30,7 @@
<resource-config target-profile="from-type:text/xml:smooks-order-xml AND to-type:text/xml:canonical-order-xml" selector="csv-set">
<resource type="xsl">
<![CDATA[
+ <orders>
<xsl:for-each select="csv-record">
<Order orderId="{orderId}"
orderDate="{orderDate}"
@@ -40,14 +41,15 @@
<Customer userName="{userName}" firstName="{firstName}" lastName="{lastName}" state="{state}" />
<OrderLines>
<OrderLine posistion="{orderLine1Position}" quantity="{orderLine1Quantity}">
- <Product productId="{orderLine1ProductId}" title="{orderLine1Title}" price="{orderLine1Price}"/>
+ <Product productId="{orderLine1ProductId}" title="{orderLine1ProductTitle}" price="{orderLine1ProductPrice}"/>
</OrderLine>
- <OrderLine posistion="{orderLine1Position}" quantity="{orderLine1Quantity}">
- <Product productId="{orderLine1ProductId}" title="{orderLine1Title}" price="{orderLine1Price}"/>
+ <OrderLine posistion="{orderLine2Position}" quantity="{orderLine2Quantity}">
+ <Product productId="{orderLine2ProductId}" title="{orderLine2ProductTitle}" price="{orderLine2ProductPrice}"/>
</OrderLine>
</OrderLines>
</Order>
</xsl:for-each>
+ </orders>
]]>
</resource>
<param name="is-xslt-templatelet">true</param>
More information about the jboss-svn-commits
mailing list