Hi,

No, it should not call these functions on the document element, because
that's not how the data model is defined, nor is that how an XSLT processor
traverses the source tree.  There may be other legitimate children of the
document which appear before and after the document element that are part
of the data model instance.  Since that's the case, the processor must
start with the first child of the root node.

I don't know what you mean when you say "the ownerElement of your
DOMDocument is NULL", but if your DOM is not properly constructed, that
would be a problem.

Dave



|---------+--------------------------->
|         |           Jaspreet Singh  |
|         |           <[EMAIL PROTECTED]|
|         |           o.in>           |
|         |                           |
|         |           03/19/2004 08:23|
|         |           AM              |
|         |           Please respond  |
|         |           to xalan-c-users|
|---------+--------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                                     |
  |        To:      [email protected]                                
                                                                     |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                        
                                                                     |
  |        Subject: Why does Xalan call getFirstChild on DOMDocument?           
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|



Hi


I get calls for DOMNode functions (getFirstChild, etc) in my DOMDocument
while calling XPathEvaluator::execute.
Xalan should call these functions on the DocumentElement and not the
Document. Since the ownerElement of my DOMDocument is NULL so I'm getting
an exception.


I hope you got what I'm trying to say.


Thanks in advance
Jaspreet



Reply via email to