> From: Steven Sedlmeyer [mailto:[EMAIL PROTECTED]] > > I was under the (apparently mistaken) impression that I could set attributes > such as <indent> on a serializer both in the <map:serializer/> node which > makes the setting global to the system or in the <map:serialize/> node > inside a pipeline making the setting apply only to the pipeline. For > example: > > 1. > > <map:serializers> > <map:serializer name="foo" ....> > <indent>no</indent> > </map:serializer> > </map:serializers> > > sets indent to no for all pipelines using the "foo" serializer > > while: > > 2. > > <map:serializers> > <map:serializer name="foo" ..../> > </map:serializers> > > <map:pipelines> > <map:pipeline> > <map:match pattern="testfoo"> > <map:generate src="xsp/test1.xsp" type="serverpages"/> > <map:serialize type="foo"> > <indent>no</indent> > </map:serialize> > </map:match> > </map:pipeline> > </map:pipelines> > > sets indent to "no" for when the pipeline matches on "testfoo" but not for > any other match that uses the "foo" serializer. > > Am I mistaken or is this how things are supposed to operate?
You are mistaken. Serializers do not accept local configuration (as of now). > If it isn't > how they're supposed to operate then is there an accepted method to > accomplish this that doesn't involve defining a "foo2" serializer with > <indent/> set to on? Nope, there is no way (currently) around it. (some future version of cocoon might have this changed; see serializer configuration thread on dev list) Vadim > Thanks > > Steve Sedlmeyer > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
