> From: Margrit John [mailto:[EMAIL PROTECTED]]
> 
> Hi!
> I have the two xml files below. In the sitemap I want to generate the
xml out
> of these two files. My output (default.xml) is the following:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <Page xmlns:xi="http://www.w3.org/2001/XInclude";>
> <Content>
> <MainColumn>
> <articles>
> <xi:include href="index.xml"/>
> </articles>
> </MainColumn>
> </Content>
> </Page>
> 
> Why doesn't it resolve the include?

Because you don't have XInclude transformer in the pipeline. See
samples.

Vadim


> page.xml:
> <?xml version="1.0"?>
> <Page xmlns:xi="http://www.w3.org/2001/XInclude";>
>   <Content>
>     <MainColumn>
>      <articles>
>        <xi:include href="index.xml"/>
>      </articles>
>     </MainColumn>
>   </Content>
> </Page>
> 
> index.xml
> <?xml version="1.0"?>
> <frontpage>
> <articles>
>   <article href="magazin/gesundheit/2002/0508"/>
>   <article href="magazin/gesundheit/2002/0465"/>
>   <article href="magazin/geist/2002/0470"/>
> </articles>
> </frontpage>
> 
> sitemap
>       <map:match pattern="default.xml">
>         <map:generate src="page.xml"/>
>         <map:serialize type="xml"/>
>       </map:match>
> 


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