cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: xinclude
Date Mon, 06 May 2002 18:35:22 GMT
> From: Margrit John [mailto:margrit.john@swissonline.ch]
> 
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message