cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert NEOtyk Iwaniuk <hube...@office.ferienwelt.com.pl>
Subject Re: Java code being dumped to browser. (newbie question)
Date Tue, 11 Dec 2001 09:07:51 GMT
On Mon, Dec 10, 2001 at 01:50:24PM -0500, Matthew Crocker wrote:
> Jeremy Crosbie wrote:
> 
> >My guess is you need to specify you are using the LDAP transformer like so
> ><map:transform type="ldap" src="crocker/eldap.xsl" /> . This requires that
> >you have defined this transformer in the first place, which is not done in
> >the default sitemap in the distribution. Add:
> >
> ><map:transformer name="ldap"
> >src="org.apache.cocoon.transformation.LDAPTransformer" />
> >
> >to the <map:transformers> element in the sitemap.
> >
> 
> I already put in the map:transformer entry and when I add 'type="ldap"' 
> to my transformer line in the pipe line I get :
> 
> ldap://localhost uid=matthew dc=crocker,dc=com base true 0 * 0 false 
> error objectClass
> 
> as output to the browser.  This looks like the ldap transformer is 
> parsing the eldapbasicsample.xml file and dumping it the screen without 
> actually doing any LDAP look.   I have slapd running in another window 
> and I do not see any connection attempts made to the ldap server.
> 
> The above output happens when I have the following pipeline
> 
>  <map:pipeline>
>    <map:match pattern="crocker">
>    <map:generate src="crocker/eldapbasicsample.xml"/>

Try this:
     <map:generate type="serverpages"
src="crocker/eldapbasicsample.xml"/>

this is my guessing.

>    <map:transform type="ldap" src="crocker/eldap.xsl"/>
>    <map:serialize type="html"/>
>    </map:match>
>  </map:pipeline>
> 
> And I have the following in my transformer map
> 
>   <map:transformer name="ldap" 
> src="org.apache.cocoon.transformation.LDAPTransformer"/>
> </map:transformers>
> 
> 

HTH,
	hubert.

---------------------------------------------------------------------
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