-
1. Re: Transform issue
beve Feb 2, 2011 9:20 AM (in response to bglasco1)Hi,
can you post the rest of you Smooks configuration?
Also, you enable the 'reportPath' property on the SmooksAction it will generate a report that might help you locate the cause:
<property name="reportPath" value="/tmp/smooks-report.html" />
Regards,
/Daniel
-
2. Transform issue
bglasco1 Feb 2, 2011 9:36 AM (in response to beve)<?xml version="1.0" encoding="UTF-8"?><smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
<params>
<param name="inputType">input.xml</param>
<param name="input.xml" type="input.type.deactived">File:/C:\jbossesb\ftp\epgout.xml</param>
<param name="input.xml" type="input.type.actived">File:/C:\jbossesb\ftp\export2.xml</param>
<param name="default.serialization.on">false</param>
<param name="stream.filter.type">SAX</param>
</params>
<ftl:freemarker applyOnElement="programme">
<ftl:template><![CDATA[ <tv>
<programme ppv='No' trick-play-restricted='' channel='${.vars["tv"]["programme/LINEUP_ID"]}'>
</programme>
</tv>]]></ftl:template>
<param name="modelSrc">File:/C:\jbossesb\ftp\sourceEPG.xml</param>
<param name="modelSrcType">XML</param>
<param name="messageType">XML</param>
<param name="templateDataProvider">input</param>
</ftl:freemarker>
<resource-config selector="tv">
<resource>org.milyn.delivery.DomModelCreator</resource>
</resource-config>
</smooks-resource-list>
-
3. Transform issue
tfennelly Feb 2, 2011 10:44 AM (in response to bglasco1)So this is generated by the Smooks Editor. Looks like you have not identified the collection fragment in the message... you just mapped the values across from source to target.
-
4. Transform issue
bglasco1 Feb 2, 2011 1:40 PM (in response to tfennelly)Ok what is the collection fragment?
-
5. Transform issue
tfennelly Feb 2, 2011 5:15 PM (in response to bglasco1)Check out these screencasts, in particular how collections are handled... http://smooks.org/mediawiki/index.php?title=Eclipse_IDE