From http://www.w3.org/TR/1999/REC-xpath-19991116 ,5 (Data Model): There is an ordering, document order, defined on all the nodes in the document corresponding to the order in which the first character of the XML representation of each node occurs in the XML representation of the document after expansion of general entities. Thus, the root node will be the first node. Element nodes occur before their children. Thus, document order orders element nodes in order of the occurrence of their start-tag in the XML (after expansion of entities). The attribute nodes and namespace nodes of an element occur before the children of the element. The namespace nodes are defined to occur before the attribute nodes. The relative order of namespace nodes is implementation-dependent. The relative order of attribute nodes is implementation-dependent. Reverse document order is the reverse of document order.
posted 17 years ago
Thank you very much andreas mueller
Won't you be my neighbor? - Fred Rogers. tiny ad:
ScroogeXHTML 8.7 - RTF to HTML5 and XHTML converter