Le Mardi, 17 juin 2003, à 16:09 Europe/Zurich, Martin Holz a écrit :
Geert Van Damme [EMAIL PROTECTED] writes:
Hi,
I'm writing a custom transformer, extending the
AbstractDOMTransformer. Is there a way to throw an exception from
this transformer so that the error handling pipeline
Hi,
I'm writing a custom transformer, extending the AbstractDOMTransformer. Is there a way
to throw an exception from this transformer so that the error handling pipeline of the
sitemap is 'activated' ? (the transform method signature does not throw an exception).
Or is the error handling
Geert Van Damme [EMAIL PROTECTED] writes:
Hi,
I'm writing a custom transformer, extending the AbstractDOMTransformer. Is there a
way to throw an exception from this transformer so that the error handling pipeline
of the sitemap is 'activated' ? (the transform method signature does
Hello,
My question is about exception handling in cocoon.
I've a transformer that checks the validity of an XML document. If the document
is not valid it throws an exception.
When the transformer is after a generator it works
well: it throws an exception and the error page is sent to the
I have an xml document :
?xml version=1.0 encoding=UTF-8?
xsp:page xmlns:xsp=http://apache.org/xsp;
xmlns:my_NS=http://www.my_NS.com/my_NS/query/1.0;
my_NS:document
my_NS:query VERSION=2.0 RESULTSPACE=R1
my_NS:property NAME = DocType
my_NS:elemDOCUMENT/my_NS:elem
From: Lionel Crine [EMAIL PROTECTED]
I have an xml document :
?xml version=1.0 encoding=UTF-8?
xsp:page xmlns:xsp=http://apache.org/xsp;
xmlns:my_NS=http://www.my_NS.com/my_NS/query/1.0;
my_NS:document
my_NS:query VERSION=2.0 RESULTSPACE=R1
my_NS:property NAME = DocType
I saw that and I've already implemented this method.
Where I'm stuck is that these methods return a void so how can I store my
tags and text in a StringBuffer?
Lionel
-
Please check that your question has not already been
-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Custom transformer
From: Lionel Crine [EMAIL PROTECTED]
I have an xml document :
?xml version=1.0 encoding=UTF-8
I see, thanks
-
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,
simo kauranen wrote:
Now I've written and compiled a transformer. I put the
.class file where I found the other transformer .class
files (not under tomcat) and defined the transformer
in the sitemap (and restarted tomcat). I got
ClassNotFoundException.
Could someone tell where I should put the
Hi,
Maybe I'm a little dumb but I can't figure out from
the source codes how I should write my own
transformer. Several questions remain:
Which functions should a transformer implement?
Which function takes in the SAX stream and which emits
it forward and how?
Where the changes to the SAX
From: simo kauranen [mailto:[EMAIL PROTECTED]]
Hi,
Maybe I'm a little dumb but I can't figure out from
the source codes how I should write my own
transformer. Several questions remain:
Which functions should a transformer implement?
Transformer is an implementation of a SAX
Now I've written and compiled a transformer. I put the
.class file where I found the other transformer .class
files (not under tomcat) and defined the transformer
in the sitemap (and restarted tomcat). I got
ClassNotFoundException.
Could someone tell where I should put the .class file
that
Hi,
Does anyone happen to know where I could find a simple
and thorough example of writing a custom transformer.
I've searched all over the net but haven't found
anything detailed enough.
Thanks for tips!
Simo K.
__
Do You Yahoo!?
Everything
From: simo kauranen [mailto:[EMAIL PROTECTED]]
Hi,
Does anyone happen to know where I could find a simple
and thorough example of writing a custom transformer.
I've searched all over the net but haven't found
anything detailed enough.
Take a look at the Cocoon transformers' source
15 matches
Mail list logo