Thank you for that hint ... 

the loadDocument-function was all I needed ;)

Regards,
        Christofer Dutz

function loadDocument(uri) {
    var parser = null;
    var source = null;
    var resolver = null;
    try {
        parser =
cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROLE);
        resolver =
cocoon.getComponent(Packages.org.apache.cocoon.environment.SourceResolver.RO
LE);
        source = resolver.resolveURI(uri);
        var is = new
Packages.org.xml.sax.InputSource(source.getInputStream());
        is.setSystemId(source.getURI());
        return parser.parseDocument(is);
    } finally {
        if (source != null)
            resolver.release(source);
        cocoon.releaseComponent(parser);
        cocoon.releaseComponent(resolver);
    }
}

-----Ursprüngliche Nachricht-----
Von: Marc Salvetti [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 29. August 2005 15:09
An: [email protected]
Betreff: Re: Use cocoon pipeline result as cform input?

hi,
have a look at the forms block samples in the cocoon distrib,

Marc

Christofer Dutz a écrit :

> Hi,
>
> I am trying to bind a cforms form to an xml-result delivered by an 
> internal cocoon pipeline. My first attempt 
> (form.load("cocoon:/db/tablename/where.xml");) looked promising at 
> fist, but didn’t seem to work. Could anyone give me a hint?
>
> Thanks in advance,
>
> Christofer Dutz
>

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