Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 38342 invoked by uid 500); 15 Mar 2001 07:18:27 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 38309 invoked from network); 15 Mar 2001 07:18:25 -0000 From: "Tagunov Anthony" To: "xsp-dev@xml.apache.org" , "cocoon-dev@xml.apache.org" , "cocoon-users@xml.apache.org" Date: Thu, 15 Mar 2001 10:21:12 +0300 Reply-To: "Tagunov Anthony" Priority: Normal X-Mailer: PMMail 2000 Professional (2.10.2010) For Windows NT (4.0.1381;6) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Subject: Re: util:include + xsp problem Message-Id: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Thu, 15 Mar 2001 03:21:42 +0000 (UTC), Forge wrote: > >HI there, > >I wish to include some xml data in my first xml file. >This works. > >But my taglib cannot access the included data.. > >I know why, because the code that inserts the xml file is nicely placed >between the code that examines it.. > >Is there any way to do this (nicely?) >Maybe it's time to add XInclude support? > >Btw, I know one way to do it and that is using a logicsheet as stylesheet, >and defining a template that inserts the xml data.. >If all goes well, this stylesheet is first applied to the input xml data, >and then my logicsheet is applied to that data.. > >Would this approach work? Yes, sure it will. What we really want (i want things like that too) is too include some code BEFORE the XSP is run. A sort of PRE-PROCESSING before XSP. util:include is not the trick, as you pointed out. XInclude is not the case because nothing should run before xsp processor in C1 (actually you can place before but this should be considered a hack and will have the drawback that whenever you change the file being included the cache will be cleaned for the page, but the page really won't be recompiled. Using external XML entities is another solution but they look ugly, and changes on them also do not get detected by the caching system I actually have been asking the developers if they think that functionality would be a good complement to , xinclude, external entities and xsl logicsheets technologies. I see it as a pre-processor inside the xsp mechanism, something like Maybe this still is a good idea.. Best regards, Tagunov Anthony --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: