Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 75443 invoked by uid 500); 26 Aug 2002 12:31:07 -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 75424 invoked from network); 26 Aug 2002 12:31:07 -0000 Message-ID: <3D6A1F82.5070303@apache.org> Date: Mon, 26 Aug 2002 08:30:58 -0400 From: "Andrew C. Oliver" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: CInclude bug??? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Incorrect. This is a bug and the @select does work in Cocoon 2.1.x. I have a fix on my local drive but I haven't submitted it yet. Will do so very soon. -Andy Per Kreipke wrote: >Apurva, > > > >>to make the long story short: >> >>the output has the whole xml file after the section of >>the xml file i want to include. >> >>i.e >> >>>src="../../commons/contents/ATTRIBUTES.xml" >>select="data/AGE/*" /> >> >>outputs: >> >> >> data >> >> >>
text
>> data >> >> >>Am i doin something wrong or is it a bug?? >> >> > >Not a bug. CInclude does not support selecting just a portion of your XML >model (and neither does XInclude). > >E.g. your @select above does nothing. > >To do what you want to do, just add a XSLT tranformer _after_ your CInclude, >then in that XSLT logic either: > >- match the elements you want with identity templates, > >- or, create a generic identity template and use empty matchers for the >elements you _don't_ want. > >XSLT makes a clean, generic filtering language. > >Note: Cocoon's FilterTransformer does something similar but in a very >restricted way (it basically only is used for paging through data models). > >Per > > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. > >To unsubscribe, e-mail: >For additional commands, e-mail: > > > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: