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]
