cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LEUZINGER Claude (DSIT-EX)" <claude.leuzin...@sncf.fr>
Subject Problem to aggregate files using xinclude transformer
Date Mon, 05 Nov 2001 10:59:34 GMT
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.

The xsl file i use:

	 <<directory-to-xinclude.xsl>> 




	
----------------------------------------------------------------------------
-----------------------------------
	M. Claude LEUZINGER
	SNCF - DSIT-EX /Section AM
	5, place Jules Ferry 69006 LYON - FRANCE
	* claude.leuzinger@sncf.fr    
	* 33 (0)4 78 65 41 56      	     
	* 33 (0)4 78 65 45 07           	     
	
----------------------------------------------------------------------------
-----------------------------------




Mime
View raw message