On Fri, 2006-05-26 at 10:59 -0400, Sarah Skinner wrote: > On Fri, 2006-05-26 at 09:53 -0400, Sarah Skinner wrote: [...] > > I would like to use the SourceTypeAction, but am not sure how to set that > up. I am sure that this is the problem. The doctype I am using is called > services, I believe I am trying to match it by URL, using the pipeline in > parameter-doctype.xmap... > > <map:pipeline> > <map:match pattern="*/services*.html"> > <map:generate type="serverpages" > src="../../config/parameters/default.xsp"> > <map:parameter name="value" value="services"/> > </map:generate> > <map:serialize type="xml"/> > </map:match> > </map:pipeline>
This matcher will only match documents with an id starting with "services". That's probably not what you want. If you use the SourceTypeAction, you won't need this matcher anymore. > > Here is what I have in parameter-doctype.xmap under components... > > <map:components> > <map:generators default="file"/> > <map:transformers default="xslt"/> > <map:readers default="resource"/> > <map:serializers default="html"/> > <map:matchers default="wildcard"/> > <map:actions> > <map:action logger="sitemap.action.sourcetype" name="sourcetype" > src="org.apache.cocoon.acting.sourcetype.SourceTypeAction"> > <sourcetype name="xhtml"> > <document-element namespace="http://www.w3.org/1999/xhtml"/> > </sourcetype> > <sourcetype name="links"> > <document-element > namespace="http://apache.org/lenya/pubs/default/1.0"/> > </sourcetype> > </map:action> > </map:actions> > </map:components> You could try to add this: <sourcetype name="services"> <document-element namespace="http://your-namespace"/> </sourcetype> Now Lenya should assign the doctype 'services' to all documents whose document-element has the namespace http://your-namespace. That means the sample file of your doctype should look somehow like that: <services:services xmlns:services="http://your-namespace"> ... </services:services> hth, Josias > > > > - Thanks > Sarah > > > > > --------------------------------------------------------------------- > 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]
