Hello again,

I am trying to access xml-elements in a xml-file that is called from within a pipeline by a JXTemplateGenerator. The pipeline is called from a Flowscript.

cocoon.sendPage("foo-pipeline", form.getXML());

1) the data contained inside the 'form.getXML() ' is in a BizData Object, right? Or is it an XMLAdapter or both? I don't really follow the documentation here....

Next the pipeline generates an xml-file:

<map:match pattern="foo-pipeline">
        <map:generate type="jx" src="foo_result.xml"/>
        <map:serialize type="html"/>
</map:match>

in the foo_result.xml I am trying to access the elements in the XMLAdapter/BizData Object, which should be the elements that have just been filled in the form.

If I call <jx:out value="#{.}"/> in the xml-file, the whole passed xml-file is presented. If I try to acceess any elements directly, e.g. by <jx:out value="#{data/foo}"/> nothing happens.

I have spent the last two hours trying to figure out, *what exactly* is passed to the JXTGenerator. e.g. <jx:out value="#{./*[1]}"/> gives me "en-US" as a result... but how to get to other elements of the file???

this is the template

<jx:template xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";>
        <html>
        <head>
        <title>Eintrag hinzugefügt</title>
        </head>
        <body>
                <h1>Neuer Eintrag</h1>
                <table>
                        <tr>
                        <td align="right">Lehrkraft</td>
                        <td><jx:out value="#{bla}"/></td>
                        </tr>
                        <tr>
                        <td align="right">fällt aus vom:</td>
                        <td><jx:out value="#{bla2}"/></td>
                        </tr>
                        <tr>
                        <td align="right">bis zum:</td>
                        <td><jx:out value="#{bla3}"/></td>
                        </tr>
                        <tr>
                        <td align="right">Grund:</td>
                        <td><jx:out value="#{bla4}"/></td>
                        </tr>
                        </table>
                <!-- <jx:out value="#{node()/node()/node()}"/> -->
                </body>
        </html>
</jx:template>

what am I missing here?

thanks for help :)

regards, christian

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