Re: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread Ludovic de Beaurepaire
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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-exprutil:exprSortieXML/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:exprlike 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
  [EMAIL PROTECTED]
  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: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]


 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]





-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread LEBRETON Philippe
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 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 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-exprutil:exprSortieXML/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:exprlike 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
   [EMAIL PROTECTED]
   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: [EMAIL PROTECTED]
   For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
  -
  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: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
 

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]


-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread Sylvain Wallez
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



Re: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread LEBRETON Philippe
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: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]


-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




with Cocoon 2.0.3 include-expr does'nt work

2002-11-29 Thread LEBRETON Philippe
With cocoon 2.0.2, i use include-expr to include string with XML data
in my XML:
util:include-exprutil:exprSortieXML/util:expr/util:include-expr
and it work.

i upgrade my cocoon to 2.0.3 and i have a exception :


Original exception : java.lang.RuntimeException: Could not include page
Content is not allowed in prolog.
  at
org.apache.cocoon.components.language.markup.xsp.XSPUtil.includeInputSource(XSPUtil.java:359)

  at
org.apache.cocoon.components.language.markup.xsp.XSPUtil.includeString(XSPUtil.java:336)

  at
org.apache.cocoon.www.pac.etatpac_PROD_xsp.ExecCmd(/var/cache/tomcat4/localhost/cocoon/cocoon-files/org/apache/cocoon/www/pac/etatpac_PROD_xsp.java:142)

Where is the problem?

Help me.

Thanks

Philippe LEBRETON


-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: with Cocoon 2.0.3 include-expr does'nt work

2002-11-29 Thread Christian Haul
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-exprutil:exprSortieXML/util:expr/util:include-expr
 and it work.

Although the error message does not fit the diagnosis, please add
xsp:expr/ around SortieXML.

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

-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]