Ross, Thanks for the answer but unfortunately it doesn't work :-( The signs are still there. And yes I bother with comments since I see them in acroread, I did not mean the pdf-file as source... Any other idea? Thomas Ross Gardler wrote: > Thomas Emmel wrote: >> Hi, >> >> Can someone explain to me why I always get these '' strings >> times the number of meta-info in my original html-document??? >> >> I think this was asked before but I cannot find any point to start in >> the mailing-lists. >> >> I start with a normal html-document which contains for several reasons >> some meta-information in its head like this >> >> >> >> >> Some title... >> >> >> >> >> >> .... >> >> I cannot remove these meta-lines since they are needed to pass extra >> info to forrest... >> .xml from html-to-document.xsl will look like this: >> >> >>
>> Some title... >> >> >> >>
>> >> ... >> >> now .fo and hence .pdf will have this content: >> >> >> > padding-after="24pt" padding-before="24pt">Some title... >> >> >> > text-decoration="underline" color="#0F3660"/> >> > space-after="5pt" font-weight="bold" font-size="14pt" >> font-family="serif">Table of contents >> ... >> >> >> However "" is realy visible in the pdf and that is annoying. >> How can I avoid that and force fo to strip those comment-sign. >> >> I use 0.8dev, slightly modified with an own skin and xsl-files. >> >> Thanks very much in advance > > You appear to have uncovered a bug. > > I'm not sure why the meta tags are left in the xdoc format. Perhaps a > debugging remnant. I suspect it would be safe to remove the relevant XSL > that produces these comments. > > However, as you correctly surmise this is not the actual cause. The real > problem lies in the *.fo generation from document-to-fo.xsl (in the > common skin since the one in pelt just imports the common one). > > In here the offending template is: > > text-align="{$text-align}" > padding-before="18pt" > padding-after="18pt"> > > > > Just why it is causing the comment blocks to appear with no content I > cannot explain. > > My suggestion would be to add a template to strip the comments out. > After all, *.fo and *.pdf are not meant as human readable formats, so > why bother with comments. > > Try adding the following template to the end of document-to-fo.xsl: > > > > Please be sure to let us know if it works, I'll run the fix past the > devs to see if there are any side-effects I've not considered and if I > get the OK I'll commit the change to SVN. > > Ross > >