cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <>
Subject AttributesImpl
Date Thu, 25 Apr 2002 11:10:37 GMT
guys, I need a hand... I'm kinda lost. I am trying to add an attribute in
a transformer:


                AttributesImpl newAttributes = null;
                try {
                    getLogger().error("creating an attributes copy");
                    newAttributes = new AttributesImpl(attributes);
                    getLogger().error("adding an attribute");
                    newAttributes.addAttribute("","id","id","CDATA", id);
                    getLogger().error("added an attribute");
                catch(Throwable e) {
                getLogger().error("passing start");
                super.startElement(uri, name, raw, newAttributes);

But I only see the "added an attribute" once. After the next "adding an
attriubute" I see nothing more at all. No stacktrace, log message -
nothing. The browser just waits forever and I don't see anything in the

Seems like there is no way back from the "addAttribute" sometimes :(

Anyone an idea? I always copied the attributes by hand up to now but AFAIK
the above is the proposed way of doing it...

Any ideas?

To unsubscribe, e-mail:
For additional commands, email:

View raw message