> -----Original Message----- > From: Hans Thomas Nordeck [mailto:[EMAIL PROTECTED]] > > I want to use the browser selector in a mounted sitemap. The > selector is well defined in the components part of the > sitemap. The Parameter "viewType" never gets a value. I can't > get it working. Does anybody has an idea what the problem > is? (I'm working with cocoon 2.1 dev, do you think that could > be the problem? cause for me everything looks right) > > Thanks a lot for help!
Selectors can't be used to selecet between parameters. Selectors are sitemap components that enable to select between other components. An example can be found here: http://xml.apache.org/cocoon/userdocs/selectors/selectors.html If you want to select between parameters of an action do it within your action. Regards, Reinhard > > <map:match pattern="*/**/content.html"> > <map:act type="cms.actions.template"> > <map:parameter name="parameters" value="true"/> > <map:parameter name="language" value="{1}"/> > <map:parameter name="path" value="{2}"/> > <map:select type="browser"> > <map:when test="pocketexplorer"> > <map:parameter name="viewType" value="browser"/> > </map:when> > <map:otherwise> > <map:parameter name="viewType" value="browser"/> > </map:otherwise> > </map:select> > <map:generate type="CmsContent"> > <map:parameter name="parameters" value="true"/> > <map:parameter name="viewComponentId" value="{viewComponentId}"/> > </map:generate> > > <map:transform src="templates/{template}.xsl"/> > > <map:serialize type="html"/> > </map:act> > </map:match> > > > --------------------------------------------------------------------- > 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]>