cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: inserting XML fragments in XSP
Date Tue, 03 Jun 2003 08:40:25 GMT
On 02.Jun.2003 -- 06:30 PM, Fernando D. Mato Mira wrote:
> >
> >
> >From: Christian Haul [mailto:haul@dvs1.informatik.tu-darmstadt.de]
> >Sent: Monday, June 02, 2003 5:13 PM
> >To: cocoon-users@xml.apache.org
> >Subject: Re: inserting XML fragments in XSP
> >
> >
> >On 02.Jun.2003 -- 04:10 PM, Mato Mira, Fernando wrote:
> > 
> >
> >>>From: Christian Haul [mailto:haul@dvs1.informatik.tu-darmstadt.de]
> >>>     
> >>>
> >>><error-text><util:include-expr expr="errortext"/></error-text>
> >>>     
> >>>
> >>I get a ProcessingException "Content is not allowed in prolog"
> >>   
> >>
> >
> >Strange, could you post a complete page?
> > 
> >
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <xsp:page language="java"
>  xmlns:xsp="http://apache.org/xsp"
>  xmlns:util="http://apache.org/xsp/util/2.0">
> 
>  <xsp:structure>
>    <xsp:include>org.apache.avalon.framework.parameters.*</xsp:include>
>  </xsp:structure>
> 
>  <page>
>    <xsp:logic>
>        try {
>      String errortext = parameters.getParameter("error-text");
>      <error-text><util:include-expr expr="errortext"/></error-text>
>        } catch (ParameterException e) {
>           // parameter not found - no error
>        }
> 
>        try {
>      String infotext = parameters.getParameter("info-text");
>      <info-text><util:include-expr expr="infotext"/></info-text>
>        } catch (ParameterException e) {
>           // parameter not found - no info
>        }
>    <selectdb/>
>    </xsp:logic>
>  </page>
> </xsp:page>

Hi, the code looks sane and I do get the same errors. I assume that
there is a problem with the parser parsing the string IOW this is a
bug. Unfortunately, I don't have the time ATM to look further into
this. I believe this works in 2.0

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
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