Hi, Joery: I am sorry that I did not make my problem more clearer.
As you mentioned, my problem is that my cinclude transformer COULD NOT understand the notation for the first alternative but I cannot figure out the reason why. I have read the articile you mentioned(As the matter of face, I just get the idea from there) but still haven't a clue. Do you have any idea about that. Can it be the version problem? Thank you very much for the nice help. Jack -----Original Message----- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 4:11 PM To: [EMAIL PROTECTED] Subject: Re: Ask help for "Cinclude" implement On 20.01.2004 12:25, Jian Dai wrote: > Hi, all: > > I am tring to use cinclude to include some xml frags in main page and I want > to pass some > parameter to that frag. I was learned that I could use cinclude in following > format > > <cinclude:includexml xmlns:cinclude="http://apache.org/cocoon/include/1.0"> > <src>XMLURI</src> > <cinclude:parameters> > <cinclude:parameter> > <cinclude:name>paraone</cinclude:name> > <cinclude:value>ValueforParaOne</include:value> > </cinclude:parameter> > ............................. > </cinclude:parameters> > </cinclude:includexml> > > When I added this code frag into xsp for main page, the included XML could > not be called. My > xsp page simple treated thoese tag as normal xml tag instead of the > attributes for "cinclude" > transformer. > > But if I use a normal cinlude format like > <cinclude:include src="XMLURI?paraone=ValueforParaOne" /> > Then, the included XML can be called without problem. If I understand you correctly you have two alternatives to use cinclude and tried them by putting them into XSP. The output of XSP is of course that what you add to it in XML tags form. Nothing will happen or will be changed with it until you add a cinclude transformer to the pipeline. So the only question is whether the cinclude transformer understands both different notations. Following the documentation both should work: http://cocoon.apache.org/2.0/userdocs/transformers/cinclude-transformer.html . The problem I have with your error description is that you don't say what does not work exactly and that you write "the included XML can/could not be called" - what ever that means. Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
