I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-10-28 02:55:55-07 by bob in response to 1249
Re: No thoughts on table headings?
I'm not certain but this might not hurt more than it's going to help!

It looks like you can get to the header row, but I'm not certain how.

I have an Open Office document which has approximately a dozen tables.

if I use:
my @rows = $content->getTableRows($table);

and then look at the first element, $rows[0], in all cases, _but one_, it does not see the header row.

There is one table for which it returns the header row.
and that table seems to start off with a simpler table definition :

<table:table table:name="distribution" table:style-name="distribution"> <table:table-column table:number-columns-repeated="4" table:style-name="distributio\ n.A"/> <table:table-row> <table:table-cell table:style-name="distribution.A1" table:value-type="string"> <text:p text:style-name="Table Heading">To</text:p> </table:table-cell> <table:table-cell table:style-name="distribution.A1" table:value-type="string"> <text:p text:style-name="Table Heading">Address</text:p> </table:table-cell> <table:table-cell table:style-name="distribution.A1" table:value-type="string"> <text:p text:style-name="Table Heading">Fax</text:p> </table:table-cell> <table:table-cell table:style-name="distribution.D1" table:value-type="string"> <text:p text:style-name="Table Heading">Phone</text:p> </table:table-cell> </table:table-row> <table:table-row>
whereas the other is:
<table:table table:name="emg_le" table:style-name="emg_le"> <table:table-column table:style-name="emg_le.A"/> <table:table-column table:style-name="emg_le.B"/> <table:table-column table:style-name="emg_le.C"/> <table:table-column table:style-name="emg_le.D"/> <table:table-column table:style-name="emg_le.E"/> <table:table-column table:style-name="emg_le.F"/> <table:table-column table:style-name="emg_le.G"/> <table:table-column table:style-name="emg_le.H"/> <table:table-column table:style-name="emg_le.I"/> <table:table-header-rows> <table:table-row> <table:table-cell table:style-name="emg_le.A1" table:value-type="string"> <text:p text:style-name="P3">SIDE</text:p> </table:table-cell> <table:table-cell table:style-name="emg_le.B1" table:value-type="string"> <text:p text:style-name="P3">NERVE</text:p> </table:table-cell> <table:table-cell table:style-name="emg_le.B1" table:value-type="string"> <text:p text:style-name="P3">STUDY TYPE</text:p> </table:table-cell> <table:table-cell table:style-name="emg_le.B1" table:value-type="string"> <text:p text:style-name="P3">STIMULATION SITE</text:p> </table:table-cell>
I have no recollection of how I created the table that uses 'table-number-columns-repeated=4'

If you find out let me know. I'd like to be able to get to the header row for each table too.

Bob
Direct Responses: 1270 | Write a response