ok, a little thinking and a lot of time later I finally figured out, how
to do it :)
first I have the form-result-file. this is what it looks like:
<?xml version="1.0" encoding="UTF-8"?>
<eintrag>
<lehrkraft>Hr. Prof. U.N. Sinn</lehrkraft>
<ausfall-von>1/27/06</ausfall-von>
<ausfall-bis>1/29/06</ausfall-bis>
</eintrag>
using the CIncludeTransformer I pull the content of this file into
another file that has the <source:insert>-tags in it which I need to
write to a file. it looks like this:
<page>
<source:insert xmlns:source="http://apache.org/cocoon/source/1.0"
xmlns:cinclude="http://apache.org/cocoon/include/1.0">
<source:source>lehrkraftnews.xml</source:source>
<source:path>lkn</source:path>
<source:fragment>
<cinclude:include src="lkn-result.xml"/>
</source:fragment>
</source:insert>
</page>
these tags have as a child element the <cinclude:include>-tag so that
the data is inserted correctly. so, I first call the
cinclude-transformer to put the data in there, then the
source-write-transformer in order to save to lehrkraftnews.xml.
just the way I needed it. the only thing that bothers me is the output
generated by the source-write-transformer after it finishes the
operation. something like: "write success to foo.bar.xml xml" anybody
know where to turn this off?
regards,
christian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]