[xep-support] [xep] [XEPJ002E][ERROR] Element 'fo:external-graphic' must be empty.

From: Gibbons, Dave (Hillsboro) <David.Gibbons_at_ADDRESS_REMOVED>
Date: Tue Jul 28 2015 - 16:45:44 PDT

I get the above error using DITA content transformed to PDF through Oxygen 17 and DITA toolkit version 2.1 with XEP 4.24 on a Windows 7 system. This message appears to show up for each image element that has an embedded alt element, like this:

      <image height="89px" width="165px" href="logo.png" >
                <alt>Company name</alt>
       </image>

Some older, similar content that uses the deprecated alt attribute rather than the alt element processes through XEP without showing this error.

XEP appears to fail after hitting 12 image elements with embedded alt elements, showing a message like this:

[xep] Rendering failed: Invalid XSL FO source 'file:/c:/buildtemp/topic.fo': 12 errors found during validation

Oxygen's transformation completes successfully, but produces a zero-byte PDF, whether XEP hits one of these errors or 12.

The image code in stage1.xml and stage1a.xml looks like this:

            <image class="- topic/image " height="89px" href="logo.png" placement="inline" width="165px" xtrc="image:1;18:65" xtrf="file:/C:/Temp/test.xml">
                <alt class="- topic/alt " xtrc="alt:1;19:22" xtrf="file:/C:/Temp/test.xml">Company name</alt>
            </image>

In stage2.fo, stage3.fo, and topic.fo it looks like this:

            <fo:inline><fo:external-graphic content-height="89px" content-width="165px" src="url('file:/C:/Temp/logo.png')">

            </fo:external-graphic></fo:inline>

What do we need to do to get our setup to handle image elements with alt elements?

Thank you for any help.

Dave Gibbons
Technical Communicator - Senior
DBG/Digital Channels
Fiserv
Office: 503-746-0968
Cell/home: 503-804-9166
www.fiserv.com<http://www.fiserv.com/>

FORTUNE World's Most Admired Companies(r) 2015
2015 Forbes America's Best Employers
Facebook: Like Fiserv<http://links.mkt030.com/ctt?kn=2&ms=MTE3ODM1NjES1&r=MTAwODUwMTkyMDkwS0&b=0&j=NDgzNDEzNTAyS0&mt=1&rt=0> * Twitter: Follow @Fiserv<http://links.mkt030.com/ctt?kn=3&ms=MTE3ODM1NjES1&r=MTAwODUwMTkyMDkwS0&b=0&j=NDgzNDEzNTAyS0&mt=1&rt=0> * LinkedIn: Connect Fiserv<http://links.mkt030.com/ctt?kn=8&ms=MTE3ODM1NjES1&r=MTAwODUwMTkyMDkwS0&b=0&j=NDgzNDEzNTAyS0&mt=1&rt=0> * Careers: Join Fiserv
<http://links.mkt030.com/ctt?kn=7&ms=MTE3ODM1NjES1&r=MTAwODUwMTkyMDkwS0&b=0&j=NDgzNDEzNTAyS0&mt=1&rt=0>
P Please consider the environment before printing this e-mail

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html

image001.gif
Received on Tue Jul 28 16:40:30 2015

This archive was generated by hypermail 2.1.8 : Tue Jul 28 2015 - 16:40:44 PDT