Will do. For now see:
http://outerthought.net/wiki/Wiki.jsp I could have sworn I did it, but I must have left the documentation dir out of my patch. In 3 weeks when I send in my refactoring of CInclude/XInclude I'll submit that as well. -Andy Per Kreipke wrote: >>Incorrect. This is a bug and the @select does work in Cocoon 2.1.x. >> >> > >Ah. > > > >>I have a fix on my local drive but I haven't submitted it yet. Will do >>so very soon. >> >> > >While you're at it, how about updating: > >http://xml.apache.org/cocoon/userdocs/transformers/cinclude-transformer.html > >on which I based my answer. > >Per > > > >>>>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 >>>> >>>><cinclude:include >>>>src="../../commons/contents/ATTRIBUTES.xml" >>>>select="data/AGE/*" /> >>>> >>>>outputs: >>>> >>>><?xml version="1.0" encoding="UTF-8"?> >>>><age> data <age> <!-- this is what i want --> >>>> >>>><data> <!-- this is what i DONT want --> >>>> <dt> text <dt> >>>> <age> data <age> >>>></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. <http://xml.apache.org/cocoon/faq/index.html> >>> >>>To unsubscribe, e-mail: <[EMAIL PROTECTED]> >>>For additional commands, e-mail: <[EMAIL PROTECTED]> >>> >>> >>> >>> >>> >>> >> >> >>--------------------------------------------------------------------- >>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: <[EMAIL PROTECTED]> >>For additional commands, e-mail: <[EMAIL PROTECTED]> >> >> >> >> > > >--------------------------------------------------------------------- >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: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>