ZVON > Tutorials > XPointer Tutorial
>> Example 3 / 4 << | Prev | Next |
Contents > Shorthand pointer > DTD-determined ID

DTD-determined ID

The element BBB has an id attribute which is of the ID-type (defined by DTD).

XPointer:b1
Matches element with ID "b1".

<!DOCTYPE   AAA
[
<!ELEMENT   AAA   (BBB+)>
<!ELEMENT   BBB   EMPTY>
<!ATTLIST   BBB
                              id   ID   #REQUIRED>
]
>

<AAA>
   <BBB   id="b1"/>
   <BBB   id="b2"/>
</AAA>