No, what I want is to generate a page that can then be picked up by XSLT/FO processor to generate a PDF. I have (had, since migration) it working on 4.6.3, but it was just a hand-written ADP page that simply had a <colspec> tag.
Problem is that FOP cannot do automatic/proportional table layout -- it needs fixed.
I've started trying to add a -colspec {list} parameter to template::list::create, but am running on varname:rowcount problems. Tcl code I added to list-proc.tcl goes thusly:
# setup colspec param
set colspec:rowcount 0
template::multirow create colspec width
foreach width $list_properties(colspec) {
template::multirow append colspec width
}
Array list_properties also has an element (list) added.
On acs-templating/resource/table.adp side I added:
<if @list_properties.colspec@ not nil>
<colspec>
<multiple name="colspec">
<col @colspec.width@ />
</multiple>
</colspec>
</if>
Calling page:
template::list::create -name bugs -multirow bugs \
-key bug_number \
-elements $elements \
-filters $filters \
-html {cols 6} \
-colspec {10 10 10 10 10 10}
With this I get:
can't read "colspec:rowcount": no such variable
while executing
"for { set __d39_i 1 } { $__d39_i <= ${colspec:rowcount} } { incr __d39_i } {
upvar 0 colspec:$__d39_i colspec
append __adp_output "
<col..."
invoked from within
"if {! ([template::util::is_nil list_properties(colspec)])} {
append __adp_output "
<colspec>
"
if {[info exists colspec]} {
upvar 0 ..."
If I add -local switch and then start playing with -ulevel and template::multirow upvar I start getting colspec:rowcount already defined.
This is just a bit over my Tcl skills :(....