Loading ...
Sorry, an error occurred while loading the content.

Re: [XSL-FO] xslt to generate table-layout=fixed

Expand Messages
  • Dave Pawson
    ... You could recurse through the table and count rows, returning the max() or, as you say, take the count of the first row as being representative.
    Message 1 of 2 , Feb 21, 2005
    View Source
    • 0 Attachment
      On Mon, 2005-02-21 at 15:32 +0000, isterin wrote:

      > Has anyone ever come up with a solution for something similar. I
      > googled for some XSLT/XPath way of solving this, and most solutions
      > lead to having a columns="#" attribute in the table element. Since we
      > can't enforce this, is there another way of possibly counting the
      > columns in say the first row, to generate the fo:table-column elements?

      You could recurse through the table and count rows,
      returning the max()

      or, as you say, take the count of the first row as being
      representative.

      match=table
      var
      value = count(row[1]/cell)



      Depends how regular your input data is?

      HTH DaveP
    Your message has been successfully submitted and would be delivered to recipients shortly.