Content is not allowed in prolog - help explain

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Content is not allowed in prolog - help explain

Hank Ratzesberger

I get the error

Fatal error: Content is not allowed in prolog.

With the following line in the Resource URL:

https://central.nees.org/cgi-bin/gridauth.cgi?username=hankr&password=xxxxx&service=Java%20GridAuth%201.0

This occurs when I construct the above line with xslt, but
when I hard-code this line, used in the url-generator,
there is no problem.  I suspect the & but I don't know how
to escape/encode that here. Indeed, it seems it gets encoded
for me already since space is encoded to %20

Thanks for you insights,
Hank Ratzesberger
UCSB




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Content is not allowed in prolog - help explain

Alessandro Vernet
Administrator
Hank,

On 9/5/07, [hidden email] <[hidden email]> wrote:

> I get the error
>
> Fatal error: Content is not allowed in prolog.
>
> With the following line in the Resource URL:
>
> https://central.nees.org/cgi-bin/gridauth.cgi?username=hankr&password=xxxxx&service=Java%20GridAuth%201.0
>
> This occurs when I construct the above line with xslt, but
> when I hard-code this line, used in the url-generator,
> there is no problem.  I suspect the & but I don't know how
> to escape/encode that here. Indeed, it seems it gets encoded
> for me already since space is encoded to %20
I am not sure that I understand what the problem is. Do you have a
full stack trace for this error?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Content is not allowed in prolog - help explain

Hank Ratzesberger
In reply to this post by Hank Ratzesberger

This message is the result of parsing errors in the returned
xml.  I presumed that the url was working, it was not, so the
content returned by it was erroneous.

The last line in the output error
page is the <url> of the url-generator <config>, so I
again assumed it was the url and not what is (attempted) to
return from the url.

Sorry for the false alarm.

--Hank

>
> I get the error
>
> Fatal error: Content is not allowed in prolog.
>
> With the following line in the Resource URL:
>
> https://central.nees.org/cgi-bin/gridauth.cgi?username=hankr&password=xxxxx&service=Java%20GridAuth%201.0
>
> This occurs when I construct the above line with xslt, but
> when I hard-code this line, used in the url-generator,
> there is no problem.  I suspect the & but I don't know how
> to escape/encode that here. Indeed, it seems it gets encoded
> for me already since space is encoded to %20
>
> Thanks for you insights,
> Hank Ratzesberger
> UCSB
>
>
>




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws