Posted on 2005-10-28 14:51:05-07 by bob in response to 1021
Re: Using tables (sections) from oowriter templates
If I understood Xpath I could probably do this more neatly, but it does return an ordered list of
table names.
sub my_getTableList { my $content=shift; my $count=scalar(($content->getTableList())) - 1; my @tables; for my $n (0 .. $count) { push (@tables, $content->getAttribute($content->getTable($n),'table:name')); } return(@tables); } # my-get-table-list
Direct Responses: 1258 | 1256 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.