[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] FO table-body empty validation error


Subject: Re: [xsl] FO table-body empty validation error
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Jul 2008 20:55:55 -0400

At 2008-07-21 15:54 -0700, Karl Stubsjoen wrote:
If I do:

<fo:table>
  <fo:table-body>
    <xsl:apply-templates select="stuff"/>
  </fo:table-body>
</fo:table>

Where a match on "stuff" produces a bunch of fo table-rows... I get
the following validation error:

Empty 'fo:table-body'.
event validation total: 1 error

Is this an expected error?

I'm guessing <stuff> never matched and your table body really is empty. If you are doing a transformation using a different tool than your FO engine, you should be able to inspect the FO instance and see for yourself. If you are using an FO engine with an embedded XSLT processor there should be an option to expose the transformed result so that you can inspect what actually ended up in the XSL-FO.


I hope this helps.

. . . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


Current Thread
Keywords