In order to reduce the XSP file size, i would want to use the
statement : <util:include-file name="mydata.xml"/>.
i did this but when i call my document, i have the following error : "
Identifier expected.
> XSPUtil.cloneNode( "
> what's wrong ?
>
> both documents work fine separatly.
>
> regards.
> christophe.
>
> -----Message d'origine-----
> De: Robin Green [SMTP:greenrd@hotmail.com]
> Date: lundi 31 juillet 2000 11:31
> À: cocoon-users@xml.apache.org
> Objet: Re: limit siez of XSP files.
>
> Christophe MALIGORNE <cmaligorne@odaxys.fr> wrote:
> >by using, i had the following error : "Code of a method longer than 65535
> >bytes".
> >
> >my document is big , the result is a PDF file which contains about 15
> >pages.
> >
> >How can I do to reduce the size of the generated .java file ?
> >Is it possible to separate my xml into 2 docs ?
>
> Yes. You can have any number of source documents. Put part of the data
> (with
> no XSP code) in a well-formed XML file e.g. mydata.xml. Then put
>
> <util:include-file name="mydata.xml"/>
>
> in the XSP at the point where you want to include the file. Make sure that
>
> the util namespace is declared at the top of the XSP page e.g.
>
> <xsp:page
> xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:util="http://www.apache.org/1999/XSP/Util"
> >
>
>
>
> --
> Robin Green
> i-tao Ltd.
> 4 Skyline Village
> Limeharbour
> London E14 9TS
> United Kingdom
> Phone +44 20 7537 2233 Fax +44 70 8081 5118
> http://www.i-tao.com
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
|