> From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
> 
> 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.

How it is not working? What is the result of
http://host/path?cocoon-view=links?


> 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>
> 
> 
> 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?

Yes, it should - if generated XML/HTML could be understood by link
serializer.

Vadim


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to