xsl fo - xsl-fo loop with counter -
i using xsl-fo , xml generate report. have query gets values table place on pdf. easy enough. querying based on parent-child relationship. example, pdf displays 2 sections: job title , responsibilities. @ first 1 one relationship. has turned 1 many relationship. need way of displaying on pdf job title , responsibilities , responsibilites 2, , on. responsibilities section has mod_num (1,2,3...). wondering if there way loop through in xsl-fo grab responsibilites specific job title. thinking of using clause in query pull right information
where mod_num = 'xsl-counter'
something that
hope example wasn't sketchy. appreciated though. thanks
i don't know if can using xsl-fo. if it's using ftl (as in moqui or ofbiz), can this:
you can use <#assign x = 0/> set variable.
then use <#list responsibilities r>
in <#list>, can <#assign x = x+1/>.
just inside <#list>, can use <#if>. like:
<#assign x = 0/> <#list responsibilities r> <#if x == 0> <fo:block>responsibility 1: ${r.text}</fo:block> <#elseif x == 1> <fo:block>responsibility 1: ${r.text}</fo:block> </#if> <#assign x = x+1/> </#list>
i know isn't doing, without getting more details, it's hard know. out.
Comments
Post a Comment