You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ben Pope <be...@REMOVE_MEhotmail.com> on 2005/03/12 20:44:24 UTC

Content is not allowed in prolog

Hi,

I seem to be having some troubles with different encoding types.

When I have a data file and the use CForms with a binding to that data file,
at some point in the pipeline I get an error - "Content is not allowed in
prolog", whats happened of course, is that there has been a conversion from
one encoding type to another and somewhere along the line the first two
characters of my file got stripped:

<?xml version="1.0" encoding="UTF-8"?>

Becomes:

xml version="1.0" encoding="UTF-8"?>

I've tried saving my file with the encoding type specified as UTF-8 and the
actual file type saved as UTF-8 and also as ASCII (presumably that’s
ISO-8859-1), and also with the encoding specified as ISO-8859-1 and also
without the encoding specified at all.

I'm confused as to why it isn’t working.

This is on 2.1.7-Dev and WindowsXP under Jetty.

Any ideas?

Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Content is not allowed in prolog

Posted by Omer kamal <om...@gmail.com>.
I am creating PDF with Cocoon 2.1.6 .I am having a problem with 
<fo:external-graphics> tag.
I cant see the image in my document. Some body advised me to use absolute 
path but i am  not sure how it works in Cocoon.
I am sure there is some unique way to do it.

I tried with many option but dont know why it not works.
My that part of code view for some options is as under;

1.

<fo:static-content flow-name="xsl-region-before">

                                                       <fo:block>
     <fo:external-graphics width="1.75in" src=url"('file://\C:\Program 
Files\cocoon-2.1.6\build\webapp\mypdf\canadaflag.jpg')"/>

                                                       </fo:block>

      *   also without single coutes in the bracess, without using file://\ 
thing.

2.



<fo:static-content flow-name="xsl-region-before">

                                                       <fo:block>
     <fo:external-graphics width="200px" height="200px" 
src="http://localhost:8888/mypdf/canadaflag.jpg"/>

                                                       </fo:block> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org