You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Tsui, Alban" <Al...@COGNOS.com> on 2003/02/14 16:02:36 UTC

RE: XInclude or CInclude working in Cocoon 2.0.4?

I cannot remember exactly what I did but ... you might need to have
something like cocoon://path/file.xml instead.
Try this and see if it works.

-----Original Message-----
From: Peter Klotz [mailto:pklotz@iconet.wn.bawue.de]
Sent: 14 February 2003 15:04
To: cocoon-users@xml.apache.org
Subject: XInclude or CInclude working in Cocoon 2.0.4?


Hi,

I'm generating XInclude or CInclude URLs and use the corresponding
transformator. Unfortunately none of the ways seemed to work.
I have file:-URLs with absolute path names, BTW.

1. Xinclude

  <xi:include href="file:/path/file.xml"/>

the output is empty and cut off.
There was a posting that one should use a attribute base="file:/path"
because Cocoon would consider the URL relative to the application base
directory under webapps. That is not mentioned in the docu but a good
explanation of what one sees. BUT it doesn't work! Is xml:base intended???

1. CInclude

If I understood correctly one has to use the <cinc:includexml><cinc:src>
construct to access external (non-webapps-relative files) But the
transformer odes not do anything to the file.
I saw several postings related to Cocoon 2.1 is this transformer not in
2.0.4?


Thanks for help, Peter



---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>