to use xinclude you'll need:
<?cocoon-process type="xinclude"?> to call the processor,
xmlns:xinclude="http://www.w3.org/1999/XML/xinclude" in <xsp:page> tag,
<include xinclude:parse="xml" xinclude:href="your_filename.xml" /> where you
want to include a file
The only drawback is that if you use xsp, the content of your included files
will be "static", that is if you change them, you won't see the modification
until you rebuild the c.java file (by changing its date, for example).
Otherwise, use <util:include-file name="results.xml" /> (and add
xmlns:util="http://www.apache.org/1999/XSP/Util" to the xsp:page tag)
Olivier
> -----Message d'origine-----
> De : Carloz Alaniz [mailto:[EMAIL PROTECTED]]
> Envoyé : lundi 9 juillet 2001 18:46
> À : [EMAIL PROTECTED]
> Objet : Executing XML inside XML
>
>
> Hi I am still trying to figure this out. I need help.
>
> This is what I want to do. I have a file lets name it a.xml
> which calls
> a.xsl which produces an HTML heading in your browser.
>
> I have another file named b.xml which calls b.xsl and produces an HTML
> footer.
>
> I am trying to create another another file named c.xml which
> calls both
> a.xml and b.xml and displays them together into a single HTML page
> displaying the header at the top and the footer at the bottom. Someone
> suggested Xinclude but I can't get it to work.
>
> I am looking forward for you all cocooner's help.
>
> Best Regards,
> Carloz
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>