Is there a sample that uses the XInclude Transformer, that I could get my
hands on?

:-)

Thanx in advance

Veena
-----Original Message-----
From: Jeremy Quinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 9:13 AM
To: Cocoon Users
Subject: [C2] using XInclude Transformer


Hi All,

I am struggling to use the XInclude Transformer in Cocoon 2.


My TomCat Context is /hrc2/

I access the URL /hrc2/index.html

In my file I have the following:

        <xinclude:include href="./linkbase/hrc.xml" parse="xml"/>


This 'href' worked fine in Cocoon 1, but in Cocoon 2 gives me :

        org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.io.FileNotFoundException: /./linkbase/hrc.xml (No such file
or directory)


the relevant section from my sitemap looks like this:

        <map:match pattern="**.html">
                <map:generate src="{1}.xml"/>
                <map:transform type="xinclude"/>
                <map:transform src="stylesheet/navigation.xsl"/>
                <map:transform src="stylesheet/hrc.xsl"/>
                <map:serialize type="html"/>
        </map:match>


I have tried every variation on the path that I can think of, what am I
doing wrong?


Thanks for any help

BTW. Which is the best one to use?
        XIncludeTransformer
        CIncludeTransformer
        or
        CachingCIncludeTransformer?

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

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