cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject Re: Please Help me. Including xml file in another xml file
Date Fri, 08 Sep 2000 00:21:12 GMT
"Pratik Machchar" <> wrote:
>Sorry for this off topic.
>I searched the mail archive and found lots of information on this topic but 
>none with luck.
>Actually I wnat to include on file connectionInfo.sxml
>      <?xml version="1.0"?>
>       <page>
>       <?cocoon-format type="text/xml"?>
>        <connectiondefs>
>         <connection name="cyberoam">
>          <driver></driver>
>          <dburl>jdbc:mysql://</dburl>
>          <username>cyberoam</username>
>          <password>cyberoam</password>
>         </connection>
>        </connectiondefs>
>       </page>
>and want to use it all the places.

Good idea!

>when i use
><title>Select IP</title>
>   <util:include-uri 
><query connection="cyberoam">select distinct clientip from tblaccesslog 
>order  by clientip </query>
>it gives me null pointer exception that no conneciton def is available.

Try using an XML external entity declaration instead.

>One more thing I want to use relative path name not complete url.

You can do that with entities I think.


Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

View raw message