The Javadoc for getNodeNumber() states:
Get the node number of this node within the TinyTree.
This method is intended for internal use.
As it says, the method is for internal use, which means you should not be
calling it and should have no expectations about the value it returns. The
actual values depend on the tactics for allocating memory within the
TinyTree which can change depending on circumstances outside your control.
> -----Original Message-----
> From: saxon-help-bounces@...
> [mailto:saxon-help-bounces@...] On Behalf Of selvam
> Sent: 22 March 2007 07:46
> To: saxon-help@...
> Subject: [saxon] getNodeNumber()
> I have one doubt regarding getNodeNumber() method..
> I have the following XML document..
> .....some more xml nodes comes here...
> - Here I am constructing 2 TinyTree objects using TinyBuilder.
> One TinyTree for the entire <model> node. // I am applying the
> transformation to the entire <model> node Another TinyTree
> for the child <Student> node. // I apply the transformation
> only to the <Student> node..
> >From each TinyTree if I try to get the node number by calling
> is giving different values..
> For example using the First TinyTree, I am getting the
> following node numbers..
> Student = 55
> ID = 57
> URI = 64
> But from the second TinyTree which is built for only
> <Student> node gives the following node numbers Student = 1
> ID=2 // I expected 3
> Courses=4 // I expected 6
> Course=5 // I expected 8
> URI=6 // I expected 10
> I see some differences in retrieving the node numbers from both the
> Why is this differences in node numbers..
> I expect the node numbers from the second child TinyTree to
> be in the same
> interval of the first tiny tree..(I have given the expected
> node number)
> Should I change any configuration..?
> View this message in context:
> Sent from the saxon-help mailing list archive at Nabble.com.
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
> chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> saxon-help mailing list