On 02.Jun.2003 -- 06:30 PM, Fernando D. Mato Mira wrote: > > > > > >From: Christian Haul [mailto:[EMAIL PROTECTED] > >Sent: Monday, June 02, 2003 5:13 PM > >To: [EMAIL PROTECTED] > >Subject: Re: inserting XML fragments in XSP > > > > > >On 02.Jun.2003 -- 04:10 PM, Mato Mira, Fernando wrote: > > > > > >>>From: Christian Haul [mailto:[EMAIL PROTECTED] > >>> > >>> > >>><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 [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]