You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "LEUZINGER Claude (DSIT-EX)" <cl...@sncf.fr> on 2001/11/05 11:59:34 UTC
Problem to aggregate files using xinclude transformer
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
----------------------------------------------------------------------------
-----------------------------------
Re: Problem to aggregate files using xinclude transformer
Posted by Sylvain Wallez <sy...@anyware-tech.com>.
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