cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perez Carmona, David" <DPerez...@fcc.es>
Subject RE: Custom transformer
Date Wed, 11 Aug 2004 06:36:26 GMT

Could you please provide the full call stack?

> -----Mensaje original-----
> De: JACOB, ERIC [mailto:eric.jacob@bell.ca]
> Enviado el: martes, 10 de agosto de 2004 21:47
> Para: users@cocoon.apache.org
> Asunto: Custom transformer
>
>
>
> Hi all,
>
> I'm writing a custom transformer that need to parse an entire xml file
> before doing something with it. The sitemap should look like that:
>
>       <map:match pattern="">
>         <map:generate src="foo.xml"/>
>         <map:transform type="custom-transformer"/>
>         <map:serialize type="xml"/>
>       </map:match>
>
> So, I want to send foo.xml to a remote server and return the
> response back
> to the pipeline to serialize it in xml. I extended the
> AbstractSAXTransformer since it provides various useful methods and I
> thought doing something like this:
>
>     public void startDocument() throws SAXException {
>         this.startSerializedXMLRecording( format );
>     }
>
>     public void endDocument() throws SAXException {
>         try {
>             String value = this.endSerializedXMLRecording();
>             callSomeFunction( value );
>         } catch ( ProcessingException pe ) {
>             throw new SAXException( pe.getMessage() );
>         }
>     }
>
> But I got an error when I encounter text node:
>
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> org.xml.sax.SAXException: no protocol
>
> Any ideas on how I could manage it?
>
> Thanks,
>
> Eric
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> *************************************************************
> Este correo ha sido procesado por el Antivirus del Grupo FCC.
> *************************************************************
>

*************************************************************
Este correo ha sido procesado por el antivirus del Grupo FCC.
*************************************************************

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


Mime
View raw message