Hi Oliver, in my case, i used xsp in a kind of "hacky" way:
<xsp:page> <xsp:logic> some logic here </xsp:logic> <content> about 67K of XML-Data without any XSP here </content> </xsp:page> So my solution was to sperate the XSP from the XML Content by using the aggregation in the sitemap: <map:aggregate name="root"> <map:part src="cocoon:/xsp-logix.xsp"/> <map:part src="static-xml.xml"/> </map:aggregate> regards, Nils > -----Urspr�ngliche Nachricht----- > Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Olivier Billard > Gesendet: Montag, 10. Mai 2004 14:21 > An: [EMAIL PROTECTED] > Betreff: Re: AW: 65K limitation > > > Nils, > > Don't confuse : it's not a XSP limitation. It's the use of the XSP > technology (that tends to be deprecated in favor of the flowscript) : > XSP are compiled as Java classes and all code is put in a > method called > generate(). So if you put too much business code in your XSP, > you will > get that error. > > Like Ugo wrote, the best way if you still want to use XSP, is to put > your code in a Java object and then use this object directly > in your XSP > or use a logicsheet to access your component (the best way, > and not that > difficult, really). This will make your code far cleaner and > more readable. > > But the best way now (but I'm very new to it) is to use > flowscript. With > this, you put the logic where it has to be (Java or > javascript) and then > you can use a pipeline to render the result. > > You can find all you need in the cocoon doc and the wiki. > > Hope this helps > > -- > Olivier > > > Nils wrote: > > Hi all, > > > > thanks for your answers. It seemed to be some kind of limitation in > > xsp. I seperated the file in an xml and an xsp part and no it works. > > > > regards, > > Nils > > > > > >>-----Urspr�ngliche Nachricht----- > >>Von: Rob Gregory [mailto:[EMAIL PROTECTED] > >>Gesendet: Sonntag, 9. Mai 2004 12:49 > >>An: [EMAIL PROTECTED] > >>Betreff: RE: 65K limitation > >> > >> > >>No I think it means that the method can only return less than > >>65k. I don't think there is a max size for an xml document? > >> > >> > >>>-----Original Message----- > >>>From: Nils [mailto:[EMAIL PROTECTED] > >>>Sent: 07 May 2004 14:33 > >>>To: [EMAIL PROTECTED] > >>>Subject: 65K limitation > >>> > >>> > >>>Does that mean, that a xml-file is only allowed to be less > than 65k > >>>in file size (s. below)? > >>> > >>>Regards, > >>>Nils > >>> > >>>org.apache.cocoon.ProcessingException: Language Exception: > >>>org.apache.cocoon.components.language.LanguageException: > >>>Error compiling > >>>projects_xml: ERROR 1 > >>>(org\apache\cocoon\www\nkpm_int\content\projects_xml.java): > >> > >>... /** * > >> > >>>Generate XML data. */ // start error (lines 72-72) "The > >> > >>code of method > >> > >>>generate() is exceeding the 65535 bytes limit" public void > >>>generate() throws > >>>SAXException, IOException, ProcessingException { // end > >> > >>error Session > >> > >>>session = request.getSession(true); ... Line 72, column 0: > >> > >>The code of > >> > >>>method generate() is exceeding the 65535 bytes limit > >>> > >>> > >>> > >> > >>------------------------------------------------------------ > --------- > >> > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >> > >> > >> > >>------------------------------------------------------------ > --------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
