Hello

I am trying to implement my own Highlight transformer that highlights terms
in xml documents that are the result of a Lucene query.

For this to work, I have to insert a new xml node (e.g. <bold>) in the
"characters" function in my class that subclasses
org.apache.cocoon.transformation.AbstractTransformer.

I tried the obvious things like calling the next three lines of code in my
"characters" function.
No success. The startElement is reported by the logger. The endElement
isn't.

String mytag = "bold";
super.contentHandler.startElement("", mytag, mytag, null);
super.contentHandler.endElement("", mytag, mytag);

Need a piece of code that illustrates how to do this...

Thanks


Hugo Burm
[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]>

Reply via email to