forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <rgard...@apache.org>
Subject Re: first line of site.xml reason for build failure
Date Mon, 29 Mar 2004 14:29:57 GMT


BUECHEL Olivier wrote:
> The differnce between this site.xml
> 
> <?xml version="1.0" encoding="iso-8859-1" ?>
> and this site.xml
> <?xml version="1.0" encoding="iso-8859-1" ?>
> is just a line with one character at the beginning of site.xml. On my installation (forrest0.5.1)
this little difference produced the huge difference between built Successful and failed built.
How can a character at the beginning of a file change the behaviour that much? Costs me a
day of debugging. Would like to know if this is correct XML behaviour of just a bug?
> here's the failure message:
> * [0]   0.447s 766b    favicon.ico
> X [0]                       index.html  BROKEN: The processing instruction target matching
"[xX][mM][lL]" is not allowed.
> Total time: 0 minutes 3 seconds
>  
> BUILD FAILED
> /home/bo/projects/forrest/apache-forrest-0.5.1-bin/forrest.build.xml:631: Java returned:
1

This is correct XML behaviour. The XML processing instruction *must* 
appear in the first line of an XML document, otherwise the parser chokes 
on it.

Ross


Mime
View raw message