You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Davanum Srinivas <di...@yahoo.com> on 2000/10/17 20:19:57 UTC
[Xalan2] Patch for Namespaces problem.
Scott,
The following 2 changes works for me :)
Thanks,
dims
File : org\apache\xalan\templates\ElemCopy.java
Function : execute
Change : Please change the last parameter of cloneToResultTree to true.
// TODO: Process the use-attribute-sets stuff
rthandler.cloneToResultTree( getStylesheet(), sourceNode, false, false, true );
File : org\apache\xalan\transformer\ResultTreeHandler.java
Function : addAttribute
Change : Please check if qe is null.
QueuedStartElement qe = getQueuedElem();
if(qe!=null)
{
if(!qe.nsDeclsHaveBeenAdded())
addNSDeclsToAttrs();
ensurePrefixIsDeclared(uri, rawName);
qe.addAttribute(uri, localName, rawName, type, value);
}
=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/