<link href="/assets/64d0ba83aa42c90354ff97799bcfc0c2.css" type="text/css" rel="stylesheet"> <script src="/assets/6fd6663d5303bb7eda3ef7493fc29db6.js"></script> <script> $(document).ready(function() { anchors.options = { visible: 'hover', placement: 'right', truncate: 64 }; anchors.add('#body h2, #body h3, #body h4, #body h5'); }); </script> <script> hljs.initHighlightingOnLoad(); </script>
<p>Treize types d’axes sont disponibles :</p> <table class="wikitable"> <tbody><tr> <th> Syntaxe </th> <th> Syntaxe abrégée </th> <th>Notes</th> </tr> <tr> <td><code>ancestor</code></td> <td></td> <td></td> </tr> <tr> <td><code>ancestor-or-self</code></td> <td></td> <td></td> </tr> <tr> <td><code>attribute</code></td> <td align="center"><code>@</code></td> <td><code>@abc</code> est la version abrégée de <code>attribute::abc</code></td> </tr> <tr> <td><code>child</code></td> <td></td> <td><code>xyz</code> est la version abrégée de <code>child::xyz</code></td> </tr> <tr> <td><code>descendant</code></td> <td></td> <td></td> </tr> <tr> <td><code>descendant-or-self</code></td> <td align="center"><code>//</code></td> <td><code>//</code> est la version abrégée de <code>/descendant-or-self::node()/</code></td> </tr> <tr> <td><code>following</code></td> <td></td> <td></td> </tr> <tr> <td><code>following-sibling</code></td> <td></td> <td></td> </tr> <tr> <td><code>namespace</code></td> <td></td> <td></td> </tr> <tr> <td><code>parent</code></td> <td align="center"><code>..</code></td> <td><code>..</code> est la version abrégée de <code>parent::node()</code></td> </tr> <tr> <td><code>preceding</code></td> <td></td> <td></td> </tr> <tr> <td><code>preceding-sibling</code></td> <td></td> <td></td> </tr> <tr> <td><code>self</code></td> <td align="center"><code>.</code></td> <td><code>.</code> est la version abrégée de <code>self::node()</code> </td> </tr> </tbody></table> <p> (<em>source</em> : <a href="http://en.wikipedia.org/wiki/XPath_1.0">wikipedia</a>)</p>