Berin Loritsch wrote: > > I find this very frustrating when I try to convert a legacy cocoon webapp to use > CLI generation. I have a webapp that I have a requirement to auto-generate a > particular store's information. Unfortunately, the link auto-sampling is not > working on that webapp--although it is on other webapps.
Uh, weird. > I can never remember what I did between autogeneration steps. > > Here is the applicable snippets from the Sitemap: > > <map:generators default="file"> > <map:generator name="file" >src="org.apache.cocoon.generation.FileGenerator" label="content"/> > <map:generator name="serverpages" >src="org.apache.cocoon.generation.ServerPagesGenerator" label="content"/> > </map:generators> > > <map:serializers default="html"> > <map:serializer name="links" >src="org.apache.cocoon.serialization.LinkSerializer"/> > <map:serializer name="xml" mime-type="text/xml" >src="org.apache.cocoon.serialization.XMLSerializer"/> > <map:serializer name="html" mime-type="text/html" >src="org.apache.cocoon.serialization.HTMLSerializer"/> > <map:serializer name="fo2pdf" mime-type="application/pdf" >src="org.apache.cocoon.serialization.FOPSerializer"/> > </map:serializers> > > <map:views> > <map:view name="content" from-label="content"> > <map:serialize type="xml"/> > </map:view> > > <map:view name="links" from-position="last"> > <map:serialize type="links"/> > </map:view> > </map:views> Yeah, that should do it. BTW, now that we are discussing sitemap design, shouldn't these views be considered 'default'? I mean, since the CLI is a built-in feature and since it requires particular views, shouldn't we make those implicit? > My understanding is that at this point link sampling should work. > Do I have to declare the XLink namespace for no other reason than > signifying the URI for link generation? No. The link serializer works on: - xlink:href="" attribute in the XLink namespace - src="" and href="" attributes on the default namespace so as long as you are using those attributes to indicate the hyperlink/inclusion semantics, you are fine. -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. <[EMAIL PROTECTED]> Friedrich Nietzsche -------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]