Re: [SOLUTION] getting krysalis to work under cocoon

Jeremias Maerki <[email protected]> Thu, 20 Nov 2003 21:11:10 +0100
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
I've just fixed that in CVS in the way I described. Taking
el.getNodeName() in any case is suboptimal because for namespaced cases
getNodeName() returns the fully qualified name of the node. Since this
is SourceForge, this change will take a while to show up on public CVS.
I guess we'll need a beta2 soon.

On 20.11.2003 12:02:11 Jorg Heymans wrote:
> For anyone else just picking up on this thread, the history of this can 
> be found here 
> http://sourceforge.net/mailarchive/forum.php?thread_id=3492729&forum_id=7972 
> 
> 
> @jeremias
> 
> In the processNode method this bit gets exec'ed.
> 
>          } else if (node.getNodeType() == Node.DOCUMENT_NODE) {
>              return processElement(findDocumentElement((Document)node));
> 
> Now it identifies the <barcode> element as the documentelement allright.
> 
> However in call below
> 
> private static DefaultConfiguration processElement(Element el) {
>   DefaultConfiguration cfg = new DefaultConfiguration(el.getLocalName());
>   ....
> 
> el.getLocalName returns null. I changed this to el.getNodeName and now 
> it works.
> 
> 
> Now who is right here?


Jeremias Maerki



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/