You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Michael Frankfurter <mi...@juwimm.com> on 2005/03/09 15:41:20 UTC

hi there,

i started playing around with the CIncludeTransformer an it's quite 
cool, but there is a thing i don't understand:

why isn't it possible to use "cached-include" and the attribute "select" 
together? i took a look at the source and it is hard-coded to ignore the 
attribute:

cinclude:cached-include

this.processCIncludeElement(
     attr.getValue("",CINCLUDE_INCLUDE_ELEMENT_SRC_ATTRIBUTE),
     null,
-->    null,
     null,
     null,
     this.cacheManager != null);

cinclude:include

this.processCIncludeElement(
     attr.getValue("",CINCLUDE_INCLUDE_ELEMENT_SRC_ATTRIBUTE),
     attr.getValue("",CINCLUDE_INCLUDE_ELEMENT_ELEMENT_ATTRIBUTE),
-->    attr.getValue("",CINCLUDE_INCLUDE_ELEMENT_SELECT_ATTRIBUTE),
     attr.getValue("",CINCLUDE_INCLUDE_ELEMENT_NS_ATTRIBUTE),
     attr.getValue("",CINCLUDE_INCLUDE_ELEMENT_PREFIX_ATTRIBUTE),
         false);

why is it implemented in that way? or is there a way to mix it up?

i would use xinclude instead of cinclude but this isn't cacheable either :o(

thanks,
micha f.