cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: FileWritingTransformer
Date Fri, 15 Feb 2002 17:24:54 GMT
Jeremy Quinn wrote:
> 
> Dear All,
> 
> I reckon I have the FileWritingTransformer and some samples ready for
> others to test.
> 
> Would anyone have any objection to me adding them to the scratchpad?

Absolutely not! I would use it instanstly!

> I have chosen an Apache Namespace for it:
> 
>         xmlns:xfwt="http://apache.org/cocoon/xfwt/1.0"
> 
> Is there any objection to this?

Nop
 
> What does it do?
> Put this in a document that gets transformed by the FileWritingTransformer:
> 
>                 <xfwt:write src="docs/result1.xml">
>                         <page>
>                                 <title>FileWritingTransformer Test Result 1</title>
>                                 <content>
>                                         <para>Congratulations!</para>
>                                 </content>
>                         </page>
>                 </xfwt:write>
> 
> It creates the file with the <page/> as root element.

Question 1#: how hard would it be do to

 <xfwt:write src="xmldb://localhost/result.xml">
  <page>
   ...
  </page>
 </xfwt>

Question #2: do you check if the <xfwt:write> element includes *one* and
only *one* nested element? If not, we could end up with problems later
on.

Anyway, sounds great.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>           X-Mozilla-Status: 0009drich Nietzsche
--------------------------------------------------------------------



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


Mime
View raw message