On 10/10/05, Svante Schubert <[EMAIL PROTECTED]> wrote:

> > How to limit it to the number actually used?
> > That would be very useful.
>
> You won't know exactly. There is no formal way getting these cells.
> There are only some heuristics.

Then perhaps XSLT can help?
How about...
  search for the max column with (n) empty following siblings...
  No, needs to be n empty columns, only searchable by
  reading every row! Yuk.

Feature request, metadata
providing the information - it must be available,
since a print doesn't print the empty columns?



>
> As I currently have an issue to enhance it for the XHTML filter
> table handling, you will have to wait for the XSLT FAQ ;-)
OK.



>
> But in general it's about figuring out the longest row (column/cell
> count) by counting only the cells having text content.

Oh. Easy then, Use the normlise function,

<xsl:template name="longrow">
 <xsl:param name='row' select='1'/>
?? Test for final row??

<xsl:if test='count(table:table-cell) &gt; $row>
   <xsl:call-template name="longrow">
        <xsl:with-param name="row" select="count(table:table-cell) "/>
   </xsl:call-template>
</xsl:template>

That should return the longest row...
Just changes the problem to which is the last row :-)


> It might be merged with the DevelopersGuide and/or written as a Wiki.

Now that's a good idea!
  If it can be backed up, to take care of vandals?

regards DaveP




--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to