cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus-Hendrik Wolf <>
Subject [c2] using xinclude
Date Mon, 23 Apr 2001 20:12:15 GMT

trying Xinclude, i can't figure out how to run it correctly.

What I want to do is quite simple: Include an XML file at
a specified position.
For example taking the hello-page.xml:

  <content xmlns:xinclude="">
         <xinclude:include href="info.xml"/>

Where in info.xml is the <para> taged line.
What I did was including the line

    <map:transformer     name="include" 

into my sitemap and added the folloging pattern
    <map:match pattern="hello.xml">
     <map:generate src="docs/samples/hello-page.xml"/>
         <map:transform type="include"/>
     <map:serialize type="xml"/>

The result is:

ERROR   5428    [cocoon  ] (main): FileGenerator.generate() 
samples\hello-page.xmlinfo.xml (Das System kann die angegebene Datei nicht 

So it _seems_ to work, but the filename is just added to the orignals.
I tried something like /../ but that didn't work and maybe I am already to 
tired to find the right solution :-)

Can anyone help me?


   Klaus Hendrik

Klaus-Hendrik Wolf

Institute for Medical Informatics
Braunschweig University of Technology
Fallersleber-Tor-Wall 22        Tel: +49-531-391-21 27
38100 Braunschweig      Fax: +49-531-391-21 31

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message