cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject RE: XIncludeTransformer still not working
Date Fri, 28 Sep 2001 08:33:31 GMT
Hi,

I'm currently looking at the XIncludeTransformer with an eye to getting it
working again.  If the xml you wish to include doesn't require any
xpointer() functionality, I can recommend using the CIncludeTransformer - it
works ;)

J.

> -----Original Message-----
> From: Andrew Answer [mailto:A.Nuzhdov@ftc.ru]
> Sent: Friday, 28 September 2001 7:05 am
> To: cocoon-dev@xml.apache.org
> Subject: XIncludeTransformer still not working
> 
> 
> Hello cocoon-dev,
> 
>   Inside C2rc1 XIncludeTransformer still not working.
>   I do this:
> 
>   index.xsp:
> <xsp:page
>  xmlns:xsp="http://apache.org/xsp"
>  xmlns:xinclude="http://www.w3.org/2001/XInclude">
> <page>
>    <xinclude:include href="menu.xml"/>
> </page>
> </xsp:page>
> 
> sitemap.xmap:
>    <map:match pattern="*.xsp">
>     <map:generate type="serverpages" src="docs/{1}.xsp"/>
>     <map:transform type="xinclude"/>
>     <map:transform src="stylesheets/index.xsl"/>
>     <map:serialize/>
>    </map:match>
> 
>    But error occured:
>  [
> org.apache.cocoon.ProcessingException: Exception in 
> ServerPagesGenerator.generate(): java.lang.NullPointerException
>         at 
> org.apache.cocoon.generation.ServerPagesGenerator.generate(Ser
> verPagesGenerator.java:187) 
>         at 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(CachingEventPipeline.java:214) 
>         at 
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(CachingStreamPipeline.java:364) 
>         at 
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchN189(sitemap_x
> map.java:1517) 
>         at 
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:841) 
>         at 
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:763) 
>         at 
> org.apache.cocoon.sitemap.Handler.process(Handler.java:163) 
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115) 
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:446) 
>         at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> java:520) 
>         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:103) 
>         at 
> com.caucho.server.http.FilterChainServlet.doFilter(FilterChain
> Servlet.java:82) 
>         at 
> com.caucho.server.http.Invocation.service(Invocation.java:277) 
>         at 
> com.caucho.server.http.CacheInvocation.service(CacheInvocation
> .java:129) 
>         at 
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.j
> ava:216) 
>         at 
> com.caucho.server.http.HttpRequest.handleConnection(HttpReques
> t.java:158) 
>         at 
> com.caucho.server.TcpConnection.run(TcpConnection.java:140) 
>         at java.lang.Thread.run(Thread.java:484) 
> java.lang.NullPointerException 
>         at 
> org.apache.cocoon.transformation.XIncludeTransformer.processXI
> ncludeElement(XIncludeTransformer.java:212) 
>         at 
> org.apache.cocoon.transformation.XIncludeTransformer.startElem
> ent(XIncludeTransformer.java:127) 
>         at 
> org.apache.cocoon.generation.ServerPagesGenerator.startElement
> (ServerPagesGenerator.java:316) 
>         at 
> org.apache.cocoon.www.docs.index2_xsp.generate(index2_xsp.java) 
>         at 
> org.apache.cocoon.generation.ServerPagesGenerator.generate(Ser
> verPagesGenerator.java:175) 
>         at 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(CachingEventPipeline.java:214) 
>         at 
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(CachingStreamPipeline.java:364) 
>         at 
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchN189(sitemap_x
> map.java:1517) 
>         at 
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:841) 
>         at 
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:763) 
>         at 
> org.apache.cocoon.sitemap.Handler.process(Handler.java:163) 
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115) 
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:446) 
>         at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> java:520) 
>         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:103) 
>         at 
> com.caucho.server.http.FilterChainServlet.doFilter(FilterChain
> Servlet.java:82) 
>         at 
> com.caucho.server.http.Invocation.service(Invocation.java:277) 
>         at 
> com.caucho.server.http.CacheInvocation.service(CacheInvocation
> .java:129) 
>         at 
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.j
> ava:216) 
>         at 
> com.caucho.server.http.HttpRequest.handleConnection(HttpReques
> t.java:158) 
>         at 
> com.caucho.server.TcpConnection.run(TcpConnection.java:140) 
>         at java.lang.Thread.run(Thread.java:484) 
>  ]
> 
> Your comments?
> 
> Best regards,
>   Andrew Answer                  A.Nuzhdov@ftc.ru
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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


Mime
View raw message