cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lai, Harry" <H...@coremetrics.com>
Subject RE: [doc] draft FAQ xinclude/cinclude
Date Fri, 21 Jun 2002 14:25:52 GMT
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:shannon@apache.org]
Sent: Friday, June 21, 2002 7:13 AM
To: cocoon-users@xml.apache.org
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>

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


Mime
View raw message