If we want to address an element relative to our current path (our context), we can use relative paths. There are 2 possibilities:
●
.
We address relative to our current path (context). Suppose our location is a SubElementA (it can be the first or the second, that doesn't matter using relative paths). We can use the following to address SubElementC
./SubElementB{3}/SubElementC
●
..
We address relative to the parent of our current element. Suppose we are at SubElementB{2} en we want to address SubElementB{3}/SubElementC. The syntax will be:
../SubElementB{3}/SubElementC
You can use multiple .. by placing / between them. Suppose we are at SubElementB{2} van SubElementA{2} and we want to address SubElementA{1}/SubElementB/SubElementC, the syntax will be: