I've now installed Tomcat 5.5.9 and all works properly now. Looks like it might have been a bug in the libraries in tomcat 5.0.30

I do have another question though. Is it possible to write a selector that can select against the current content

e.g. using the cinclude code below, I have a sitemap fragment that looks like :

<map:generate type="file" src="request.xml"/>
<map:transform type="xslt" src="makecincluderequest.xslt"/>
<map:transform type="cinclude"/>

so I now have the response from our server in XML. I want to do something like:

<map:select type="xpath">
   <map:parameter name="path" value="//Status/@Type">

   <map:when test="Success">
   </map:when>
   <map:otherwise>
   </map:otherwise>
</map:select>

to determine whether the response was a success or not. Is it possible to code a selector to do this, or is there a completely different way of doing this?

Cheers,
   Rob.

Hi,

I'm running cocoon 2.1.7 under Tomcat 5 as a sevlet. I have a simple piece of XML that i'm running through the CInclude transformer. I'm using it to send XML to our server which will respond with more XML back. The problem I am having is that, although the CML I am sending to the CInclude transformer has namespaces, they are being stripped off when they are being sent to the server. The CInclude block (with the XML being sent) is below :

<?xml version="1.0" encoding="ISO-8859-1"?>
<cinclude:includexml xmlns:cinclude="http://apache.org/cocoon/include/1.0";>
 <cinclude:src>http://localhost:9345/server</cinclude:src>
 <cinclude:configuration>
   <cinclude:parameter>
     <cinclude:name>method</cinclude:name>
     <cinclude:value>POST</cinclude:value>
   </cinclude:parameter>
 </cinclude:configuration>
 <cinclude:parameters>
   <cinclude:parameter>
     <cinclude:name>Data</cinclude:name>
     <cinclude:value>
<Transaction:Authorise xmlns:Transaction="http://www.waltonmobile.com/schema/wms/v1_0/transaction/v1_0"; xmlns="http://www.waltonmobile.com/schema/wms/v1_0/common/v1_0";>
         <Transaction:Authorisation>
           <Entity>
             <Authenticate>
               <Name Context="Wallet:Entity">********</Name>
               <Password>********</Password>
             </Authenticate>
           </Entity>
         </Transaction:Authorisation>
         <Transaction:Request>
           <Entity>
             <Authenticate>
               <Name Context="Wallet:Entity">[EMAIL PROTECTED]</Name>
               <Password>aaaaaaa</Password>
             </Authenticate>
           </Entity>
         </Transaction:Request>
       </Transaction:Authorise>
     </cinclude:value>
   </cinclude:parameter>
 </cinclude:parameters>
</cinclude:includexml>

The Transaction:Authorise block is being sent to the server, but the namespaces are not. Also, it is being sent as a GET not a POST, which shouldn't make a difference but is still odd.

Any help would be greatly appreciated

Cheers,
   Rob.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to