Respected Sir,
How does smooks framework decides, that in place of <?TEMPLATE-SPLIT-PI?>
which template to call.
Lets say below in template section part of smoooksConfig file.
<ftl:freemarker applyOnElement="catalog">
<ftl:template><!--<#ftl >author,title,genre<?TEMPLATE-SPLIT-PI?>
-->
</ftl:template>
</ftl:freemarker>
<ftl:freemarker applyOnElement="book">
<ftl:template>
<!-- <#ftl >
${book.author},${.vars["book"].title},${.vars["book"].genre} -->
</ftl:template>
<param name="quote">"</param>
<param name="includeFieldNames">true</param>
<param name="csvFields">author,title,genre</param>
<param name="seperator">,</param>
<param name="messageType">CSV</param>
<param name="templateDataProvider">input</param>
</ftl:freemarker>
<ftl:freemarker applyOnElement="books">
<ftl:template>
<!-- <#ftl >
${books.name1},${.vars["books"].name2},${.vars["books"].name3} -->
</ftl:template>
</ftl:freemarker>
So in smoooksConfig above, in place of <?TEMPLATE-SPLIT-PI?> which template
will be called
1)
<ftl:freemarker applyOnElement="book">
<ftl:template>
Or
2)
<ftl:freemarker applyOnElement="books">
<ftl:template>
I am new to smooks.
Using it to parse large xml file in wso2.
Went through many links like below, but could not get this concept.
http://www.smooks.org/guide
http://ravindraranwala.blogspot.com/2015/03/smooks-mediator-in-wso2-esb.html
Please guide.
With Regards
Aditya
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev