cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirk Woerner" <k...@stoneseeker.com>
Subject RE: [C1.8.2] xinclude after xsp not working
Date Wed, 31 Jan 2001 18:34:06 GMT
This looks like some kind of XPath bug in the XInclude engine and I'm going
to pass.  Does this same xinclude work when not done after an XSP?  Because
the patch I did really shouldn't change anything here.

Remember, this is a cludge,  Basically there is no concept of namespace so
the attribute names HAVE TO BE EXACTLY "xinclude:href" and "xinclude:parse"
case sensative, otherwise they won't be found.

> -----Original Message-----
> From: Drasko Kokic [mailto:drasko_kokic@yahoo.com]
> Sent: Wednesday, January 31, 2001 4:05 AM
> To: cocoon-users@xml.apache.org
> Subject: RE: [C1.8.2] xinclude after xsp not working
>
>
> Thanks for your help Kirk ... I have tried your
> suggestions and have moved one step forward ... now I
> am getting following error message:
>
> java.lang.NullPointerException
>               at
> org.apache.cocoon.xml.util.XPathAPI.eval(XPathAPI.java:207)
>               at
> org.apache.cocoon.xml.util.XPathAPI.selectNodeList(XPathAPI.java:148)
>               at
> org.apache.cocoon.xml.util.XPathAPI.selectNodeList(XPathAPI.java:132)
>               at
> org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludePro
cessorWorker.processXIncludeElement(XIncludeProcessor.java:388)
>               at
> org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludePro
cessorWorker.process(XIncludeProcessor.java:227)
>               at
> org.apache.cocoon.processor.xinclude.XIncludeProcessor.process(XIn
cludeProcessor.java:139)
>               at
> org.apache.cocoon.Engine.handle(Engine.java:384)
>               at
> org.apache.cocoon.Cocoon.service(Cocoon.java:183)
>               at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>               at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>               at
> org.apache.tomcat.core.Handler.service(Handler.java:286)
>               at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>               at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:797)
>               at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>               at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpConnectionHandler.java:210)
>               at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>               at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>               at java.lang.Thread.run(Thread.java:484)
>
> Thanks a million for your kind help
> Drasko
>
> --- Kirk Woerner <kirk@stoneseeker.com> wrote:
> > In order for this to work you have to use
> >
> > <include xinclude:parse="xml"
> >
> xinclude:href="konto-demo.xml#xpointer(/PAGE/PEPSi[@MSISDN='491793
> 894939'])"
> > />
> >
> > or
> > <xinclude:include xinclude:parse="xml"
> >
> xinclude:href="konto-demo.xml#xpointer(/PAGE/PEPSi[@MSISDN='491793
> 894939'])"
> > />
> >
> > rather than
> >
> > <PEPSi xinclude:parse="xml"
> >
> xinclude:href="konto-demo.xml#xpointer(/PAGE/PEPSi[@MSISDN='491793
> 894939'])"
> > />
> >
> >
> > This fix is a total hack but it's because for some
> > reason the nodes created
> > by XSP are not DOM2 still
> >
> > > -----Original Message-----
> > > From: Donald Ball [mailto:balld@webslingerZ.com]
> > > Sent: Tuesday, January 30, 2001 11:36 AM
> > > To: cocoon-users@xml.apache.org
> > > Cc: kirk@stoneseeker.com
> > > Subject: Re: [C1.8.2] xinclude after xsp not
> > working
> > >
> > >
> > > On Tue, 30 Jan 2001, Drasko Kokic wrote:
> > >
> > > > Sorry ... here is the newest output:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <PAGE
> > > >
> >
> xmlns:request="http://www.apache.org/1999/XSP/Request">
> > > >
> > > >     <TITLE>LOOP KontoCheck - MSISDN v0.3</TITLE>
> > > >     <PEPSi
> > > >
> > >
> >
> xinclude:href="konto-demo.xml#xpointer(/PAGE/PEPSi[@MSISDN=&apos;4
> > > 91793894939&apos;])"
> > > > xinclude:parse="xml"/>
> > > >   <!--Processed by XInclude--></PAGE>
> > > > <!-- This page was served in 6560 milliseconds
> > by
> > > > Cocoon 1.8.2 -->
> > >
> > > i must confess puzzlement that this isn't working.
> > i'm copying kirk
> > > woerner on this since it's his patch that was
> > supposed to fix this, maybe
> > > he has some insight. i note with interest that the
> > xinclude namespace is
> > > not declared on this page. that's kind of strange.
> > >
> > > - donald
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > Please check that your question has not already been
> > answered in the
> > FAQ before posting.
> > <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail:
> > <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:
> > <cocoon-users-help@xml.apache.org>
> >
>
>
> __________________________________________________
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


Mime
View raw message