![]() |
|
||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||||
|
|
|||||
| Related Syntax | |||||
| modifier |
of ancestor |
||||
Syntax
of ancestor (element-name | element-name-list)
An element qualifier that specifies an element's ancestor with a particular element name. The of ancestor qualifier can refer to any element currently open, except the current element; however it will always refer to the innermost element with the specified name.
In the following XML fragment, when parsing the title element
<manual>
<chapter>
<title>First Chapter</title>
<p>Introduction paragraph</p>
<section>
<title>First Section</title>
...
</section>
</chapter>
</manual>
of ancestor can refer to elements section, chapter or manual.
|
Related Syntax |
Copyright © Stilo International plc, 1988-2010.