You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by LEBRETON Philippe <ph...@cti-paysloire.cnamts.fr> on 2002/12/02 11:09:46 UTC
Re: with Cocoon 2.0.3 does'nt work
Christian Haul wrote:
> On 29.Nov.2002 -- 01:50 PM, LEBRETON Philippe wrote:
> > With cocoon 2.0.2, i use <include-expr> to include string with XML data
> > in my XML:
> > <util:include-expr><util:expr>SortieXML</util:expr></util:include-expr>
> > and it work.
>
> Although the error message does not fit the diagnosis, please add
> <xsp:expr/> around SortieXML.
Ok i add <xsp:expr>like this :
<util:include-expr>
<util:expr>
<xsp:expr>
SortieXML
</xsp:expr>
</util:expr>
</util:include-expr>
and it does'nt work
>
>
> 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
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: with Cocoon 2.0.3 does'nt work
Posted by Sylvain Wallez <sy...@anyware-tech.com>.
LEBRETON Philippe wrote:
>Sylvain Wallez wrote:
>
>
>
>>LEBRETON Philippe wrote:
>>
>>
>>
>>>Ludovic de Beaurepaire wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Hi Philippe,
>>>>
>>>>- try to have your 3 tags on one line only (!)
>>>>- or insert the java generated code directly :
>>>> XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);
>>>>
>>>>
>>>>
>>>>
>>>I try tis two method and i have the same problem.
>>>I think it is a bug
>>>
>>>
>>>
>>>
>>Is the content of "SortieXML" a syntactically correct XML document ?
>>
>>
>
>No, my XML data string content data without root element.
>
So that's why this doesn't work !
If "SortieXML" is a text-only string (no XML markup), then simply use
<xsp:expr>SortieXML</xsp:expr>
to output the value of the "SortieXML" string as text in the document
produced by the XSP.
Hope this will solve your problem.
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: with Cocoon 2.0.3 does'nt work
Posted by LEBRETON Philippe <ph...@cti-paysloire.cnamts.fr>.
Sylvain Wallez wrote:
> LEBRETON Philippe wrote:
>
> >Ludovic de Beaurepaire wrote:
> >
> >
> >
> >>Hi Philippe,
> >>
> >>- try to have your 3 tags on one line only (!)
> >>- or insert the java generated code directly :
> >> XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);
> >>
> >>
> >
> >I try tis two method and i have the same problem.
> >I think it is a bug
> >
> >
>
> Is the content of "SortieXML" a syntactically correct XML document ?
No, my XML data string content data without root element.
thanks
Philippe
>
>
> You have to be aware that, even if included, this cannot be an XML
> fragment but must be a _full_ XML document, i.e. with one root element
> and no text outside that root element. The error message seems to reveal
> some text outside the root element.
>
> Sylvain
>
> --
> Sylvain Wallez Anyware Technologies
> http://www.apache.org/~sylvain http://www.anyware-tech.com
> { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: with Cocoon 2.0.3 does'nt work
Posted by Sylvain Wallez <sy...@anyware-tech.com>.
LEBRETON Philippe wrote:
>Ludovic de Beaurepaire wrote:
>
>
>
>>Hi Philippe,
>>
>>- try to have your 3 tags on one line only (!)
>>- or insert the java generated code directly :
>> XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);
>>
>>
>
>I try tis two method and i have the same problem.
>I think it is a bug
>
>
Is the content of "SortieXML" a syntactically correct XML document ?
You have to be aware that, even if included, this cannot be an XML
fragment but must be a _full_ XML document, i.e. with one root element
and no text outside that root element. The error message seems to reveal
some text outside the root element.
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: with Cocoon 2.0.3 does'nt work
Posted by LEBRETON Philippe <ph...@cti-paysloire.cnamts.fr>.
Ludovic de Beaurepaire wrote:
> Hi Philippe,
>
> - try to have your 3 tags on one line only (!)
> - or insert the java generated code directly :
> XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);
I try tis two method and i have the same problem.
I think it is a bug
Philippe
>
>
> Ludovic
>
> ----- Original Message -----
> From: "LEBRETON Philippe" <ph...@cti-paysloire.cnamts.fr>
> To: <co...@xml.apache.org>
> Sent: Monday, December 02, 2002 11:09 AM
> Subject: Re: with Cocoon 2.0.3 <include-expr> does'nt work
>
> > Christian Haul wrote:
> >
> > > On 29.Nov.2002 -- 01:50 PM, LEBRETON Philippe wrote:
> > > > With cocoon 2.0.2, i use <include-expr> to include string with XML
> data
> > > > in my XML:
> > > >
> <util:include-expr><util:expr>SortieXML</util:expr></util:include-expr>
> > > > and it work.
> > >
> > > Although the error message does not fit the diagnosis, please add
> > > <xsp:expr/> around SortieXML.
> >
> > Ok i add <xsp:expr>like this :
> > <util:include-expr>
> > <util:expr>
> > <xsp:expr>
> > SortieXML
> > </xsp:expr>
> > </util:expr>
> > </util:include-expr>
> >
> > and it does'nt work
> >
> > >
> > >
> > > 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
> > >
> > > ---------------------------------------------------------------------
> > > 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: <co...@xml.apache.org>
> > > For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: with Cocoon 2.0.3 does'nt work
Posted by Ludovic de Beaurepaire <lu...@axonie.com>.
Hi Philippe,
- try to have your 3 tags on one line only (!)
- or insert the java generated code directly :
XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);
Ludovic
----- Original Message -----
From: "LEBRETON Philippe" <ph...@cti-paysloire.cnamts.fr>
To: <co...@xml.apache.org>
Sent: Monday, December 02, 2002 11:09 AM
Subject: Re: with Cocoon 2.0.3 <include-expr> does'nt work
> Christian Haul wrote:
>
> > On 29.Nov.2002 -- 01:50 PM, LEBRETON Philippe wrote:
> > > With cocoon 2.0.2, i use <include-expr> to include string with XML
data
> > > in my XML:
> > >
<util:include-expr><util:expr>SortieXML</util:expr></util:include-expr>
> > > and it work.
> >
> > Although the error message does not fit the diagnosis, please add
> > <xsp:expr/> around SortieXML.
>
> Ok i add <xsp:expr>like this :
> <util:include-expr>
> <util:expr>
> <xsp:expr>
> SortieXML
> </xsp:expr>
> </util:expr>
> </util:include-expr>
>
> and it does'nt work
>
> >
> >
> > 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
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>