cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eduardo Yánez <ejyan...@yahoo.com>
Subject Re: HELP! with XML/XSP includes
Date Wed, 20 Dec 2000 22:22:34 GMT
Here you have!
I have Resin1.1.5 & Cocoon 1.8 and this sample works
fine!

It ilustrates xinclude, xsl:include

Regards!
Eduardo.

--- eliza.khosrova@TMINUS10.com escribió: > I have 2
XML files (file1.xml and file2.xml) where
> both of them contain
> some XSP tags.  I am trying to find out if it's
> valid to include one into
> another, i.e. include file2.xml into file1.xml.  If
> so, can someone please
> send me samples.  I have included my files at the
> end of this email so if
> anyone out there knows what I am doing wrong, please
> let me know.
> 
> I first tried <util:include-file name="file2.xml"/>
> but that simply
> includes the file without compiling the xsp stuff
> which is what I want.
> So, I tried using <include xinclude:parse="xml"
> xinclude:href="file2.xml"/>
> but it's giving me Java.lang.exception errors.
> 
> Below is the simplified version of files.
> 
> ANY HELP IS GREATLY APPRECIATED.
> 
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!-- *****************file1.xml
> ********************** -->
> 
> <?cocoon-process type="xinclude"?>
> <?cocoon-process type="xsp"?>
> 
> <?cocoon-process type="xslt"?>
> <?xml-stylesheet href="page-xml.xsl"
> type="text/xsl"?>
> 
> <xsp:page
>   language="java"
>  
> xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"
>   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> 
> >
> <Page>
> 
>     <include xinclude:parse="xml"
> xinclude:href="file2.xml"/>
> 
> </Page>
> </xsp:page>
> 
> 
> 
> 
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!-- *****************file2.xml
> ********************** -->
> 
> <?cocoon-process type="xsp"?>
> 
> <?cocoon-process type="xslt"?>
> <?xml-stylesheet href="page-xml.xsl"
> type="text/xsl"?>
> 
> <xsp:page
>   language="java"
>   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> 
> >
> <Page>
> 
>     <!-- xsp stuff removed from here -->
> 
> </Page>
> </xsp:page>
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> cocoon-users-help@xml.apache.org
> 


=====
Eduardo Yánez.
IT Manager
Guanoco.com
Tlf: 9512458, 9526906

_________________________________________________________
Do You Yahoo!?
Obtenga su dirección de correo-e gratis @yahoo.com
en http://correo.espanol.yahoo.com
Mime
View raw message