|
|
Preceding:: and preceding-sibling:: are a bit more complex, but are pretty self-explanatory once you think about them in the context of the document structure. In this diagram, the preceding:: nodes are circled, and the more specific preceding-sibling:: nodes are given a red border. The preceding-siblings are nodes that share the same parent node, and come before the current node in the document. The preceding:: node is any node that comes before the element in the document. So, if the current node were a persName in the 3rd paragraph of the second division of a text, the preceding nodes would be:
|