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 RE: Problem to aggregate files using xinclude transformer
Date Tue, 06 Nov 2001 11:33:20 GMT
I changed the namespace of XInclude 1.0 : to
"http://www.w3.org/2001/XInclude" 
but now i have this error : 
-------------
The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. 
Please correct the error and then click the Refresh button, or try again
later. 

Element was not closed. Line 2, Position 66 
 
<news-collection xmlns:xinclude="http://www.w3.org/2001/XInclude"
----------
Can you pls help me in debuging this problem.
Thanks by advance
Claude.

log extract :

DEBUG   (2001-11-06) 12:02.16:626   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/DirectoryGenerator: depth: 1
DEBUG   (2001-11-06) 12:02.16:626   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/DirectoryGenerator: root pattern: docs
DEBUG   (2001-11-06) 12:02.16:626   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/DirectoryGenerator: include pattern: SDT_Prod_
DEBUG   (2001-11-06) 12:02.16:626   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/DirectoryGenerator: exclude pattern: null
DEBUG   (2001-11-06) 12:02.16:636   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/URLFactoryImpl: Making URL from
file:/D:\XML\Apache\jakarta\jakarta-tomcat-3.2.2\webapps\cocoon\sdt\styleshe
ets\directory-to-xinclude.xsl
DEBUG   (2001-11-06) 12:02.16:636   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/TraxTransformer: Using stylesheet:
'file:/D:/XML/Apache/jakarta/jakarta-tomcat-3.2.2/webapps/cocoon/sdt/stylesh
eets/directory-to-xinclude.xsl' in
org.apache.cocoon.transformation.TraxTransformer@1cbd4b, last modified:
1005043589915
DEBUG   (2001-11-06) 12:02.16:696   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/URLFactoryImpl: Making URL from
file:/D:\XML\Apache\jakarta\jakarta-tomcat-3.2.2\webapps\cocoon\sdt\docs\fic
hprod
DEBUG   (2001-11-06) 12:02.16:706   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/XIncludeTransformer: Processing XInclude element:
href=file:docs/fichprod/SDT_Prod_001.xml, parse=xml
DEBUG   (2001-11-06) 12:02.16:706   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/XIncludeTransformer: Processing XInclude element:
href=file:docs/fichprod/SDT_Prod_001.xml, parse=xml
DEBUG   (2001-11-06) 12:02.16:746   [cocoon  ] (/cocoon/sdt/xaggr.xml)
Thread-22/AbstractXMLPipe: Exception in endDocument
java.lang.RuntimeException
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:433)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:49)
	at
org.apache.cocoon.generation.DirectoryGenerator.generate(DirectoryGenerator.
java:185)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:214)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:364)
	at
org.apache.cocoon.www.sdt.sitemap_xmap.wildcardMatchN40006D(sitemap_xmap.jav
a:921)
	at
org.apache.cocoon.www.sdt.sitemap_xmap.process(sitemap_xmap.java:405)
	at
org.apache.cocoon.www.sdt.sitemap_xmap.process(sitemap_xmap.java:332)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40022B(sitemap_xmap.java:29
86)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2293)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2195)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

-----Message d'origine-----
De : Sylvain Wallez [mailto:sylvain.wallez@anyware-tech.com]
Envoyé : lundi 5 novembre 2001 14:17
À : cocoon-dev@xml.apache.org
Objet : Re: Problem to aggregate files using xinclude transformer


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

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


Mime
View raw message