Re: [xep-support] Element 'fo:external-graphic' and 'fo:page-number-citation' must be empty errors

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Tue Jun 28 2005 - 07:09:59 PDT

At 2005-06-28 09:17 -0400, arian hojat wrote:
>i was evaluating XEP and the 1st transform i do, i get these errors...
>
>Element 'fo:external-graphic' must be empty.
>Element 'fo:page-number-citation' must be empty.
>Element 'fo:page-number-citation' must be empty.
>Element 'fo:page-number-citation' must be empty.
>Element 'fo:page-number-citation' must be empty.
>Element 'fo:page-number-citation' must be empty.
>Element 'fo:page-number-citation' must be empty.
>Element 'fo:page-number-citation' must be empty.
>.... many of these...
>
>I assume i am doing something wrong in my .fo?

Yes, the standard states those formatting objects must be empty, so the
tool is reporting that to you. Given that fo:external-graphic gets its
information from its attributes, why do you not use an empty
element? Also, given fo:page-number-citation gets its characters for
display from the formatting engine, it too has to be empty.

I believe the message is quite clear and unequivocal.

Note that:

   <fo:external-graphic ...attributes-here...>
   </fo:external-graphic>

is *not* an empty XML element because of the child text node.

>FOP seems to be leniant though if i amdoing something wrong..

I must say that "lenient" is not an adjective I've heard before when
discussing the conformance issues with FOP.

I hope this helps.

. . . . . . . . . Ken

--
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/f/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Tue Jun 28 07:35:55 2005

This archive was generated by hypermail 2.1.8 : Tue Jun 28 2005 - 07:35:55 PDT