cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: Problem to aggregate files using xinclude transformer
Date Mon, 05 Nov 2001 13:16:36 GMT
You should use the namespace of XInclude 1.0 :
"http://www.w3.org/2001/XInclude".

The namespace you're using is that of the working drafts (see
http://www.w3.org/TR/xinclude/)

"LEUZINGER Claude (DSIT-EX)" a écrit :
> 
> I tried to aggregate xml files from a directory 'fichprod' using xinclude
> Transformer,
> 
> partial sitemap description :
> 
>      <map:match pattern="xaggr.xml">
>       <map:generate type="directory" src="docs/fichprod">
>          <map:parameter name="include" value="SDT_Prod_"/>
>         </map:generate>
>         <map:transform src="stylesheets/directory-to-xinclude.xsl"/>
>         <map:transform type="xinclude"/>
>         <map:serialize type ="xml"/>
> 
> And I have this result in cocoon2.0rc1a , NT4 and Tomcat 3.2.2 :
> 
>   <?xml version="1.0" encoding="UTF-8" ?>
> - <news-collection xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
>   <xinclude:include parse="xml" href="file:fichprod/SDT_Prod_001.xml" />
>   <xinclude:include parse="xml" href="file:fichprod/SDT_Prod_002.xml" />
>   <xinclude:include parse="xml" href="file:fichprod/SDT_Prod_003.xml" />
>   </news-collection>
> 
> I would like to have the aggregation (the content) of this files, how to do?
> 
> thanks,
> 
> Claude.
> 

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message