DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18553>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18553

XalanNodeList objects return NULL nodes when accessed through XercesDocumentBridge

           Summary: XalanNodeList objects return NULL nodes when accessed
                    through XercesDocumentBridge
           Product: XalanC
           Version: 1.4.x
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


XalanNodeList objects return NULL nodes when accessed through 
XercesDocumentBridge. Here is a snippet that demonstates the problem (a 
complete example is provided as an attachment):

XalanTransformer theXalanTransformer;
XalanParsedSource * parsedSource;

theXalanTransformer.parseSource(
   XSLTInputSource("foo.xml"), 
   parsedSource, true);

const XalanNodeList * nodeList = 
  parsedSource->getDocument()->getDocumentElement()->getChildNodes();

assert(nodeList->getLength() > 0);
assert(nodeList->item(0) != NULL); // Will assert!

Reply via email to