Pages: 1
Print
Author Topic: RenderX XEP Omits Conditional Attributes  (Read 320 times)
kwag_myers
Member

Posts: 63


« on: August 17, 2011, 06:07:22 AM »

This is probably related to the issue I'm having here: http://forums.xmetal.com/index.php/topic,1362.0.html - XMetaL Hangs When Generating Output.

When I generate a PDF with conditional text set for Product A the output fails with the following highlighted in the log:

Code:
<log_line>
transform.fo2xmpdf.xep:</log_line><log_line>
[echo] transform.fo2xmpdf.xep start</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] ERROR: Element 'fo:table' cannot have non-empty text descendants here.</log_line><log_line>
[java] Rendering failed: Invalid XSL FO source 'file:/C:/Users/...(my edit)../2.1.1/pdf_out/topic.fo': 14 errors found during validation</log_line><log_line>
[java] Java Result: 1</log_line><log_line>
[echo] transform.fo2xmpdf.xep end</log_line>

If I clear all settings in the Show/Hide Conditional Text dialog box the output generates everything with a Product attribute is omitted. This includes several topics that are set in the map. Any ideas?
« Last Edit: August 17, 2011, 07:10:36 AM by kwag_myers » Logged

XMetaL 6 Author in Windows 7 Home Premium
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1548



WWW
« Reply #1 on: August 17, 2011, 12:52:31 PM »

What does the DITA source look like? Assuming you have not made any changes to the DITA Open Toolkit then this is likely triggered by the XML files. Best to narrow this down to a single problem file.
Logged
gcrews
Member

Posts: 189


« Reply #2 on: August 17, 2011, 01:37:02 PM »

Is the table title conrefed by any chance or conditionally processed out?
It might be related to this issue I ran into with the toolkit processing:
http://tech.groups.yahoo.com/group/dita-users/message/23156

Logged
kwag_myers
Member

Posts: 63


« Reply #3 on: August 18, 2011, 10:23:58 AM »

What does the DITA source look like? Assuming you have not made any changes to the DITA Open Toolkit then this is likely triggered by the XML files. Best to narrow this down to a single problem file.
I was using a custom OT. I removed the output parameter for the custom OT with no change in the results.

Is the table title conrefed by any chance or conditionally processed out?
It might be related to this issue I ran into with the toolkit processing:
http://tech.groups.yahoo.com/group/dita-users/message/23156
I really have a mixed bag in one section. Data is subjected to several tests at various intervals. To complicate matters, Product A and Product B each have exclusive tests. To make it easier on the user to reference, I put together an index of tests with each test title being linked to the corresponding section (I think that's what you mean by "conrefed"). Some topics may have a table "conditionalized" for Product A with tests 1-3 and another table for Product B with tests 2-4. In the index, the links for tests 1 and 4 are conditionalized accordingly.

I'm wondering if I should make a separate index for each product? But that doesn't explain the topics that are conditionalized in the map missing from the output. Unless I've muddied the waters so much that the whole conditional text thing is just ignored completely.

edit: I tried noting the section out and the output log shows only one issue (compared to 14). I'm going to play around with the map a little more, but I think G is on to something.
« Last Edit: August 18, 2011, 12:45:15 PM by kwag_myers » Logged

XMetaL 6 Author in Windows 7 Home Premium
mzwecker
Member

Posts: 26


« Reply #4 on: September 15, 2011, 06:05:55 AM »

I've also run into this problem. Similarly, my pdf generates when I clear all values from the ditaval (that is, I don't use any conditions).  As soon as I use any conditions, I get the error mentioned above.  I'm having trouble tracking down the source of the problem.

NEWS FLASH
Problem solved. I had a condition set on a choicetable element.
I guess that's a no-no.
« Last Edit: September 15, 2011, 07:09:51 AM by mzwecker » Logged
Pages: 1
Print
Jump to:  

email us