Re: SourceWritingTransformer, namespaces problem with Cocoon 2.1

2003-04-01 Thread Murad Jura
Bruno Dumon wrote:
On Sat, 2003-03-01 at 17:52, Mark H wrote:

I'm trying to write an XSP to a file using SourceWritingTransformer but the
latest DOMStreamer (v2.1) with setNormalizeNamespacesOn to true adds a
namespace to every element rather than to the xsp:page element (so that the
logicsheets don't work),


This problem should be fixed now in cocoon-2.1

This is a test.

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


Re: SourceWritingTransformer and redirect

2003-02-02 Thread Beat De Martin
I guess a serializer is mandatory in a pipeline.
What I did now, I used a aggregation. One map:part just writes the files and
the other one prepares the html which I want to send to the client.

map:match pattern=bestellung
 map:generate type=serverpages src=xml/bestellung.xml/
  map:serialize type=xml/
/map:match
map:match pattern=bestellungmail
  map:generate type=serverpages src=xml/bestellung_pdf.xml/
  map:transform src=xsl/bestellung_fo.xsl/
  map:transform type=filewriter
   map:parameter name=serializer value=fo2pdf/
  /map:transform
map:serialize type=xml/
/map:match

map:match pattern=bestellunguebermittlung.html
 map:act type=controller
  map:aggregate element=page
   map:part src=cocoon:/bestellung strip-root=true/
   map:part src=cocoon:/bestellungmail strip-root=true/
 /map:aggregate
map:transform src=xsl/bestellunguebermittlung.xsl/
map:serialize type=html/
/map:act
map:redirect-to uri=logout.html/
/map:match




 Hi folks
 Is it possible to use SourceWritingTransformer and then a redirect. Like
 this:
 ...
 map:transformer name=filewriter
 src=org.apache.cocoon.transformation.SourceWritingTransformer/
 ...
 map:match pattern=bestellunguebermittlung.html
 map:act type=controller
   map:generate type=serverpages src=xml/bestellung_pdf.xml/
   map:transform src=xsl/bestellung_fo.xsl/
   map:transform type=filewriter
map:parameter name=serializer value=fo2pdf/
   /map:transform
   map:transform src=xsl/lieferadresse.xsl/
   map:serialize type=xml/
   !-- this works but SourceWritingTransformer does NOT write the file --
   !-- map:redirect-to uri=realbestellunguebermittlung.html/--
 /map:act
 map:redirect-to uri=logout.html/
 /map:match
 
 
 With map:serialize type=xml/ it works, but when I use redirect, the
 file
 is not written. The redirect itself works.
 Any suggestions ?
 
 Cheers
 Beat De Martin
 
 -- 
 +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
 NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: SourceWritingTransformer.

2002-10-15 Thread Alex Romayev

From what I understand, yes.  In 2.1
SourceWritingTransformer has been merged with
ex-sunrise InsertTransformer.

Alex
--- ROSSEL Olivier [EMAIL PROTECTED] wrote:
 I use old-style SWT:
 
 source:write src=...
  tree-to-be-written
   ...
  /tree-to-be-written
 /source
 
 It seems that there is a newer syntax (with a very
 interesting source:insert
 !! )
 but I can't get it to work in C2.0.3. It seems that
 the SWT I have still
 uses
 the old-style syntax.
 
 Is the new SWT only available in C2.1dev ?
 
 
 This e-mail is intended only for the above
 addressee. It may contain
 privileged information. If you are not the addressee
 you must not copy,
 distribute, disclose or use any of the information
 in it. If you have
 received it in error please delete it and
 immediately notify the sender.
 Security Notice: all e-mail, sent to or from this
 address, may be
 accessed by someone other than the recipient, for
 system management and
 security reasons. This access is controlled under
 Regulation of
 Investigatory Powers Act 2000, Lawful Business
 Practises.
 

-
 Please check that your question  has not already
 been answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
 


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: SourceWritingTransformer.

2002-10-15 Thread ROSSEL Olivier

 From what I understand, yes.  In 2.1
 SourceWritingTransformer has been merged with
 ex-sunrise InsertTransformer.

No hope to see this feature in C2.0.4 ?
It would be a so neat feature!!!
This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: SourceWritingTransformer sample (disregard previous post Serializer that writes to file)

2002-07-10 Thread Hunsberger, Peter

 Also, what if I don't want the final output sent over the wire.how
 would I stop output from going to the requesting browser?  

Writing a null (do nothing) serializer would be pretty easy... :-)

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: SourceWritingTransformer : Cannot get 'xml' serializer

2002-03-27 Thread Matthieu Benéteau

Sorry for being long, I'm just beginning my day.
( 09:40 AM in France :)

I have simply replaced FileWritingTransformer with
SourceWritingTransformer in the sitemap :

1.  map:transformer name=tofile
logger=sitemap.transformer.tofile

src=org.apache.cocoon.transformation.SourceWritingTransformer
  map:parameter name=serializer  value=xml/
/map:transformer

2.  map:match pattern=project/test-write
  map:generate src=test/test-write.xml/
  map:transform type=tofile/
  map:serialize type=xml/
/map:match

3. Inside test-write.xml :

?xml version=1.0 encoding=iso-8859-1?
product xmlns:source=http://apache.org/cocoon/source/1.0;
   functionBlockList
  functionBlock.../functionBlock

  source:write src=test/result-write.xml
functionBlock content /functionBlock
  /source:write

  functionBlock.../functionBlock
  functionBlock.../functionBlock
   /functionBlockList
/product

This used to work with FileWritingTransformer.

Here is my XML serializer declaration :

  map:serializer name=xmlmime-type=text/xml
logger=sitemap.serializer.xml
  src=org.apache.cocoon.serialization.XMLSerializer
  pool-max=32 pool-min=16 pool-grow=4
encodingiso-8859-1/encoding
  /map:serializer


Thanks,
Matthieu


 -Message d'origine-
 De : Jeremy Quinn [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 26 mars 2002 18:43
 Objet : Re: SourceWritingTransformer : Cannot get 'xml' serializer


 At 6:18 pm +0100 26/3/02, Matthieu Benéteau wrote:
 Hi,
 
 I've just installed Cocoon 2.0.2 on Tomcat 4.0.1, and it works
 perfectly :).
 But I've encountered a problem using the scratchpad's
 SourceWritingTransformer.
 
 I used to use revision 1.6 of the old FileWritingTransformer.
 I've just changed xfwt into source and tested it, and I've
 received the
 following error :
 
action: none
result: failed
error message : could not get a ContentHandler and failed to cancel

 May I see the setup you used?

 1. Declaration of SourceWritingTransformer in the SiteMap
 2. Usage of the SourceWritingTransformer in the SiteMap
 3. The actual tag you generate to trigger SourceWritingTransformer

 Here are the 2 exceptions of the sitemap.log :
 
 WARN(2002-03-26) 17:40.48:760
 [sitemap.transformer.tofile](/myproject/request)
 HttpProcessor[8080][0]/SourceWritingTransformer: failed, could not get a
 ContentHandler
 org.apache.cocoon.ProcessingException: Cannot get 'xml' serializer

 Do you have a serializer set up called 'xml', maybe you removed
 the default
 from the main sitemap?


 Thanks in advance,
 Matthieu

 Thanks for trying this out.

 regards Jeremy
 --
___

Jeremy Quinn   Karma Divers
webSpace Design
 HyperMedia Research Centre

mailto:[EMAIL PROTECTED]
http://www.media.demon.co.uk
   phone:+44.[0].20.7737.6831 pager:[EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: SourceWritingTransformer : Cannot get 'xml' serializer

2002-03-27 Thread Jeremy Quinn

At 9:55 am +0100 27/3/02, Matthieu Benéteau wrote:
1.  map:transformer name=tofile
logger=sitemap.transformer.tofile

src=org.apache.cocoon.transformation.SourceWritingTransformer
  map:parameter name=serializer  value=xml/
/map:transformer


the serialize parameter is wrong, try this:

map:transformer name=tofile logger=sitemap.transformer.tofile

src=org.apache.cocoon.transformation.SourceWritingTransformer
-- serializerxml/serializer
/map:transformer

Why there is this different syntax for setting up, I am not sure.

Hope this helps

regards Jeremy
--
   ___

   Jeremy Quinn   Karma Divers
   webSpace Design
HyperMedia Research Centre

   mailto:[EMAIL PROTECTED]http://www.media.demon.co.uk
   phone:+44.[0].20.7737.6831 pager:[EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: SourceWritingTransformer : Cannot get 'xml' serializer

2002-03-27 Thread Matthieu Benéteau

It's working !  :)
Thanks a lot.

Matthieu


 -Message d'origine-
 De : Jeremy Quinn [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi 27 mars 2002 11:26
 Objet : RE: SourceWritingTransformer : Cannot get 'xml' serializer


 At 9:55 am +0100 27/3/02, Matthieu Benéteau wrote:
 1.  map:transformer name=tofile
 logger=sitemap.transformer.tofile
 
 src=org.apache.cocoon.transformation.SourceWritingTransformer
   map:parameter name=serializer  value=xml/
 /map:transformer


 the serialize parameter is wrong, try this:

   map:transformer name=tofile logger=sitemap.transformer.tofile

 src=org.apache.cocoon.transformation.SourceWritingTransformer
 --   serializerxml/serializer
   /map:transformer

 Why there is this different syntax for setting up, I am not sure.

 Hope this helps

 regards Jeremy
 --
___

Jeremy Quinn   Karma Divers
webSpace Design
 HyperMedia Research Centre

mailto:[EMAIL PROTECTED]
http://www.media.demon.co.uk
   phone:+44.[0].20.7737.6831 pager:[EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: SourceWritingTransformer : Cannot get 'xml' serializer

2002-03-26 Thread Jeremy Quinn

At 6:18 pm +0100 26/3/02, Matthieu Benéteau wrote:
Hi,

I've just installed Cocoon 2.0.2 on Tomcat 4.0.1, and it works perfectly :).
But I've encountered a problem using the scratchpad's
SourceWritingTransformer.

I used to use revision 1.6 of the old FileWritingTransformer.
I've just changed xfwt into source and tested it, and I've received the
following error :

   action: none
   result: failed
   error message : could not get a ContentHandler and failed to cancel

May I see the setup you used?

1. Declaration of SourceWritingTransformer in the SiteMap
2. Usage of the SourceWritingTransformer in the SiteMap
3. The actual tag you generate to trigger SourceWritingTransformer

Here are the 2 exceptions of the sitemap.log :

WARN(2002-03-26) 17:40.48:760
[sitemap.transformer.tofile](/myproject/request)
HttpProcessor[8080][0]/SourceWritingTransformer: failed, could not get a
ContentHandler
org.apache.cocoon.ProcessingException: Cannot get 'xml' serializer

Do you have a serializer set up called 'xml', maybe you removed the default
from the main sitemap?


Thanks in advance,
Matthieu

Thanks for trying this out.

regards Jeremy
--
   ___

   Jeremy Quinn   Karma Divers
   webSpace Design
HyperMedia Research Centre

   mailto:[EMAIL PROTECTED]http://www.media.demon.co.uk
   phone:+44.[0].20.7737.6831 pager:[EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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