At 9:33 AM -0700 27/7/01, Alexander Thomas wrote:
>Hi there!
>
>My problem:
>Under cocoon is a xml file looking like this:
>
><a xmlns:xlink="http://www.w3.org/1999/xlink";>
> <b xlink:href="target.xml"></b>
></a>
>
>There is also a file named target.xml in the same directory:
>
><c>
>  The content of the link.
></c>
>
>The sitemapentry is set up like this:
>
>  <map:match pattern="linktest">
>   <map:generate src="linktest.xml"/>
>   <map:serialize/>
>  </map:match>
>
>Unfortunately the content of the second xml file is not contained in the
>output. Actually the output is basically the same as the originating xml file.
>
>Does somebody know ways to enable xlink resolution in Cocoon2?

You won't get the XLinks resolving automatically.

I have a project online that is built using XLinks and LinkBases (probably
very different from yours).

If you look in the 'about this site' section, I have started documenting
how it works.

        <http://www.hrc.wmin.ac.uk/hrc/about/site.xml>

The version currently there is based on Cocoon 1, though I am in the
process of converting it to Cocoon 2, the technique is basically the same:

I XInclude the LinkBase into all of my documents, then use a StyleSheet to
resolve the links.


Hope this helps

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <mailto:[EMAIL PROTECTED]>                    <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pager:[EMAIL PROTECTED]>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to