cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject [Xalan2] Patch for Namespaces problem.
Date Tue, 17 Oct 2000 18:19:57 GMT
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/

Mime
View raw message