/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<span class="description">
<br>
<div class="descriptionheading">Overview</div>
This example shows how we can change the context node for the XPATH processing so that it executes from another node than the root node.
<br><br>
<div class="descriptionheading">Context Nodes</div>
In PHP the XPATH engine uses the root node as the default context node.<br/><br/>
In newer versions of PHP we can add an optional context node from the document which allows us to execute a query from  
any node in the document.<br/><br/>
In this case we use <span class="interestingdescription">$node</span> as the context node and thus are executing ./color for each car, and not for the root of the document.
<br><br>
<div class='exampleheading'>Web Page Output:<br><br>
<img src='DomExample3b.png'>
</div>
																	
</span>