Hi Diana,

This looks like a great summary to me!  Just FYI, I also found an older post
indicating that CInclude has better performance than XInclude (mentioned
near the bottom of the post).

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100339923211176&w=2

If this is true, it'd probably also be worth adding to the FAQ.  Thanks!

Harry

-----Original Message-----
From: Diana Shannon [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 7:13 AM
To: [EMAIL PROTECTED]
Subject: [doc] draft FAQ xinclude/cinclude


Q.
What are the similarities and differences of xinclude and cinclude?

A.

Similarities
- Both provides mechanisms to include content from other documents
- Both support cocoon:/ protocol (i.e. they both use Cocoon's resolver).

xinclude transformer
- implements the W3C XInclude spec.
- allows you to include text or xml content (via parse="text|xml" )
- allows you to use xpointer syntax(via '#' or xpointer() syntax) within 
href attribute
- does *not* support Cocoon's caching mechanism

cinclude transformer
- helps you serve documents with inclusions and tags in xinclude 
namespace. Thus, you can create document
with xinclude *and* cinclude tags, process it through cinclude, and 
xinclude tags will remain intact.
- allows you to specify the wrapper element of the included content, 
i.e. element="wrapper",
- allows you to wrap included content in a particular namespace: 
ns="wrapper_ns"
- allows you to add prefixes to included content element tags: 
prefix="wrapper_prefix"
- supports Cocoon's caching mechanism

Please cross check. Did I overlook any important points?

-- Diana


---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to