cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: We need step by step instructions for enabling link sampling
Date Thu, 10 Jan 2002 21:07:10 GMT
> From: Berin Loritsch [mailto:bloritsch@apache.org]
> 
> 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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message