You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Doug Chestnut <dh...@virginia.edu> on 2003/09/25 17:49:27 UTC

XInclude performance question?

Hello,
In the FAQ about XInclude and CInclude transformer
(http://cocoon.apache.org/2.1/faq/faq-transformers.html#faq-N1001F)
differences and similarities is this XInclude difference:

     -Allows you to use XPointer syntax (via '#' or XPointer() syntax)
within href attribute. However, support of XPointer requires random access
to the object model of XML document to be included. Thus, it is expensive to
construct in runtime. If you are including a whole document, it's better to
use CInclude which supports straightforward text inclusion.

Doesn't the XIncludeTransformer also support straightforward text inclusion?

     -Allows you to include text or xml content (via parse="text|xml").

With the XIncludeTransformer, do I always have the performance expense of
the "random access to the object model of XML document to be included" even
if I am not using XPointer, or if my parse="text"?

Thanks in advance,
--Doug


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: XInclude performance question?

Posted by Bruno Dumon <br...@outerthought.org>.
On Thu, 2003-09-25 at 17:49, Doug Chestnut wrote:
> Hello,
> In the FAQ about XInclude and CInclude transformer
> (http://cocoon.apache.org/2.1/faq/faq-transformers.html#faq-N1001F)
> differences and similarities is this XInclude difference:
> 
>      -Allows you to use XPointer syntax (via '#' or XPointer() syntax)
> within href attribute. However, support of XPointer requires random access
> to the object model of XML document to be included. Thus, it is expensive to
> construct in runtime. If you are including a whole document, it's better to
> use CInclude which supports straightforward text inclusion.
> 
> Doesn't the XIncludeTransformer also support straightforward text inclusion?

yes it does.

> 
>      -Allows you to include text or xml content (via parse="text|xml").
> 
> With the XIncludeTransformer, do I always have the performance expense of
> the "random access to the object model of XML document to be included" even
> if I am not using XPointer, or if my parse="text"?

no.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org