David Mundie wrote:
> I have just installed the XEP trial edition. I get the following  errors 
> when I try to convert a Docbook document:
> 
>> Transforming XML file "__doc.xml" to "__doc.fo" using "xsl/fo/ 
>> docbook.xsl"
>> Compiling style sheet "file:/Users/dmundie/hads/Anomaly_Detection/ 
>> Reports/XXE/.xxe2/config/docbook/xsl/fo/docbook.xsl"
>> Processing XML file "/private/tmp/xxe59854/__doc.xml"
>> Converting XSL-FO file "__doc.fo" to "__doc.pdf" using XEP
>> XEP: validating the XSL-FO document...
>> XEP error: Attribute 'content-width' cannot have a value of "NaN%".
>> XEP error: Attribute 'content-height' cannot have a value of "NaN%".
>> XEP error: Attribute 'content-width' cannot have a value of "NaN%".
>> XEP error: Attribute 'content-height' cannot have a value of "NaN%".
> 
> 
> The conversion succeeds under FOP (although of course with lots of  
> error messages).
> 
> Maybe I've missed it in the documentation, but how does one debug  this 
> sort of thing? By the time the dialog comes up, it appears that / 
> private/tmp/xxe59854/__doc.xml has already been deleted. Any  suspicions 
> as to what might cause this?
> 

My guess:

* Your document contains images and therefore <imagedata>, <graphic> or 
<inlinegraphic> elements

* At least two of these elements have a "scale" attribute with a value 
such as "50%", "75%", etc. This kind of value is illegal. You need to 
specify "50" and not "50%".

If my diagnostic is wrong, I'm almost sure your problem is related to 
attributes related to images found imagedata/graphic/inlegraphic 
elements. Experiment with your images/image attributes and you'll 
quickly find where the problem lies.



Reply via email to