cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject Re: Splitting the method into many smaller methods
Date Mon, 04 Jun 2001 15:46:58 GMT
> We have written a class file that implements the Cocoon's Processor
> interface.  This class's process method is very big.  But I am not able to
> split this method into smaller methods.  Because in each of these smaller
we
>
> are trying to modify the document parameter either by adding nodes
manually
> or by applying a stylesheet.  Once I tried splitting this method but got a
> DOM005 exception.  So how do I avoid this??

Use importNode instead of appenNode() when moving nodes between different
documents.

Regards,
    Konstantin Piroumian.

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


Mime
View raw message