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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to