»User: »Password:   Remember Me? 
>e-novative> Support and Discussion Forums / >e-novative> DocBook Environment (eDE) / Installation and Configuration / New eDE install, PDF problems, margin-left, inch/mm conflict ?
Posted:  08 Apr 2005 11:19
Hi.
Just made a new (my first) eDE install yesterday, and I have problems generating PDF. WinXP SP2.
I've only run "docbook_create jesm", made some minor changes to the xml file (no tag changes, just in the plain text) and tried to run "docbook_pdf jesm". I get the following outpout below. I *do* get a PDF file, but there is no left-margin, the text is at the left edge of the "paper". To me it looks as a mixup between inch and mm. Note, all error messages are about "margin-left".

Best Regards,
Jan-Erik.
PS: Nice tool b.t.w, I've been looking for something that "look and feels" as my old "DEC Document"... :-)


C:\docbook\repository\jesm>docbook_pdf jesm



eDE: creating jesm.pdf in c:\docbook\output\jesm\pdf\:



eDE: validating jesm:
eDE: jesm validated successfully
eDE: using default book XSL stylesheet
Making portrait pages on A4 paper (210mmx297mm)
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5rc
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] Error in margin-left property value '0.75in - 0': org.apache.fop.fo.expr.PropertyException: Can't add Numerics of different dimensions
[ERROR] Error in margin-left property value '1.25in - 0': org.apache.fop.fo.expr.PropertyException: Can't add Numerics of different dimensions
[ERROR] Error in margin-left property value '1.25in - 0': org.apache.fop.fo.expr.PropertyException: Can't add Numerics of different dimensions
[14-15 similar lines...]

[ERROR] Error in margin-left property value '0': org.apache.fop.fo.expr.PropertyException: No conversion defined
[3 more similar lines...]

[ERROR] region-name 'xsl-footnote-separator' doesn't exist in the layout-master-set.
[ERROR] Error in margin-left property value '0': org.apache.fop.fo.expr.PropertyException: No conversion defined
[3 more similar lines...]

[INFO] [1]
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] [2]
[INFO] [3]
[INFO] [4 (blank)]
[ERROR] Error in margin-left property value '0': org.apache.fop.fo.expr.PropertyException: No conversion defined
[3 more similar lines...]

[ERROR] region-name 'xsl-footnote-separator' doesn't exist in the layout-master-set.
[ERROR] Error in margin-left property value '0': org.apache.fop.fo.expr.PropertyException: No conversion defined
[4 more similar lines...]

[INFO] [5]
[INFO] [6 (blank)]
[ERROR] Error in margin-left property value '0': org.apache.fop.fo.expr.PropertyException: No conversion defined
[3 more similar lines...]

[ERROR] region-name 'xsl-footnote-separator' doesn't exist in the layout-master-set.
[ERROR] Error in margin-left property value '0': org.apache.fop.fo.expr.PropertyException: No conversion defined
[5 more similar lines...]

[INFO] [1]
[INFO] [2 (blank)]
[INFO] Parsing of document complete, stopping renderer
eDE: jesm.pdf created
C:\docbook\repository\jesm>docbook_pdf jesm
Posted:  08 Apr 2005 13:42
Hi!

Have a look into the file:
stylesheets/e-novative.xsl

if there is a line:
Code:

<xslaram name="title.margin.left">0</xslaram>

change it to
Code:

<xslaram name="title.margin.left">0in</xslaram>


This should (hopefully ;-)) fix the problem..

greetz
tristran
Posted:  08 Apr 2005 13:44
.. ignore the smilies ;)
these should be like: "xml:param"
Posted:  08 Apr 2005 14:36
Many thanks !
That solved the dimension and conversion problems.
The PDF contents is now centred with margins on the pages.

Now I get a few other errors (of course :-) ).
I can take the message about no swedish hyphenation lib, that's no big deal, but the "footnote" one !? Is that seriouse ? I have absolutly no idea where to start searching...

Jan-Erik.

[ERROR] region-name 'xsl-footnote-separator' doesn't exist in the layout-master-set.

[3 of them...]

...
...

[ERROR] Couldn't find hyphenation pattern sv
[ERROR] Error building hyphenation tree for language sv
Posted:  08 Apr 2005 14:38
B.t.w, I put the "<xslaram name="title.margin.left">0in</xslaram>" line into custom.xsl, which seems to have works just fine, right ?

Jan-Erik.
Posted:  08 Apr 2005 14:51
Putting it into custom.xsl overrides the option in e-novative.xsl, so it has the same effect

concerning the hyphenation: it seems like there are no patterns for swedish included but have a look at:
http://xml.apache.org/fop/index.html
maybe you can create them on your own?

footnote-error: i work with eDE for half a year now and i couldn't solve the problem - in fact i didn't try very hard to do so, because it doesn't seem to have a negative effect, so i live with it
Posted:  08 Apr 2005 15:11
Fine.
I'll check the hyph thing.
Does the footnote error mean that you can't use footnotes ?

Anyway, I'll try with a bit larger text and see how it works out. It's currently an evaluation. I've used markup based tools before (DEC Document), then switched to Word, but now I'm looking for a markup based tool again... :-)

Jan-Erik.
PS: I guess the margin-left error is an bug, right ? Does e-novative monitor this forum so they can fix that ?
Posted:  08 Apr 2005 15:44
Well, i've never tried to make footnotes.. sorry

If you try it, let me know if it works

e-novative should know this bug! (it has been mentioned in the old forum, too) - maybe they fix it in the next release.. (like the few other *little* bugs which are contained )

tristran
Posted:  11 Apr 2005 15:31
Yes, we do monitor this forum. Thanks for your input. We _try_ to fix all bugs, especially those mentioned in the old forums. If the old forums had not been unexpectedly hacked, we'd have a very recent backup of the forum with its posts, but as you can imagine, data is always lost when your last good backup is a couple of days or weeks old. Sorry about that.

We'll fix this bug and come up with a new release by the end of this week. Promise.
Posted:  06 May 2005 03:12
Upgrade to FOP 0.20.5 will help with the 'xsl-footnote-separator' errors, just exchange the contents of the fop subdirectory with new version
Posted:  09 Nov 2005 00:15
This has been a quiet forum for a while...

I've recently had the same left margin error in my PDF renderings of ede docbook article types.
Code:

[ERROR] Error in margin-left property...



I updated: 
Code:

<xslaram name="title.margin.left">0</xslaram>


to read instead as: 
Code:

<xslaram name="title.margin.left">0in</xslaram>


What I got was an interesting 2 column PDF.  Each sect code has it's own 'bookmark' in the PDF but the structure is off.  Text no longer runs off the page in the left margin.  That's good. 

This is the first time I've gotten a decent PDF since following the above suggestions.  How shall I go about fixing the column display?  Anyone else run into this?
Posted:  11 Nov 2005 18:02
I found the answer in the FAQ section at e-novate.info

Quote:
- Edit the file custom_article_fo.xsl in c:\docbook\stylesheets and add an entry <xsl:param name="column.count.body">1</xsl:param>.


Problem solved!  Now I have a pretty PDF to go with my pretty HTML. 

Creating multiple docs with ede docbook is really nice.