cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eduardo Zurita" <g000...@correo.cajacanarias.es>
Subject Re: Automatically generated linefeed before <?xml ...?> in the JSP causes SAXException
Date Tue, 21 Jan 2003 09:03:41 GMT
Hello again,

The pipeline is:

<map:pipeline>
    <map:match pattern="qeq.html">
      <map:generate type="jsp" src="servicios/qeq/jsp/qeq.jsp"/>
      <map:serialize type="xml"/>
    </map:match>
</map:pipeline>

The qeq.jsp is a program that connects to remote URL using a
HttpURLConnection object. I do it this way because I need modify some
request properties. This remote URL returns XML data. The JSP simply writes
(out.write) the XML to the output. But SAX doesn't like the output. Always
there is a linefeed causing troubles. The linefeed is located just before
any code I have written. The current error says:

org.xml.sax.SAXParseException: The processing instruction target matching
"[xX][mM][lL]" is not allowed.

Please help.

Thanks in advance.

----- Original Message -----
From: "Konstantin Piroumian" <kpiroumian@apache.org>
To: <cocoon-users@xml.apache.org>
Sent: Monday, September 16, 2002 12:22 PM
Subject: Re: Automatically generated linefeed before <?xml ...?> in the JSP
causes SAXException


> If the JSP samples work then this is probably a problem somewhere in your
> XML.
> How does your sitemap look like (the relevant part)?
>
> Konstantin
>
> ----- Original Message -----
> From: Eduardo Zurita
> To: cocoon-users@xml.apache.org
> Sent: Monday, January 20, 2003 16:05
> Subject: Automatically generated linefeed before <?xml ...?> in the JSP
> causes SAXException
>
>
> Hello,
>
>     I have found that my JSP generator always prints a LineFeed
> automatically before <?xml.....?> causing the SAXException.
>
>     I have examined the generated source and yes, there is a generated
> "out.write("\r\n");" just before my code.
>
>     How can I resolve this?
>
>     Thanks.
>
>     Eduardo.
>
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message