Określanie oś (SQLXML 4.0)
Oś określa drzewo zależności między węzły zaznaczone krok lokalizacji i węzeł kontekstu.Obsługiwane są następujące osi: child
Zawiera element podrzędność węzeł kontekstu.
Następujące wyrażenie XPath (ścieżka lokalizacji) powoduje zaznaczenie wszystkich bieżący węzeł kontekstu <Odbiorcy> dzieci:
child::CustomerIn the following XPath query, child is the axis.Customer is the node test.
parent
Zawiera obiektu nadrzędnego węzła kontekstu.
The following XPath expression selects all the <Customer> parents of the <Order> children:
child::Customer/child::Order[parent::Customer/@customerID="ALFKI"]Jest to taka sama, jak określanie child::Customer. In this XPath query, child and parent are the axes.Customer and Order are the node tests.
attribute
Zawiera atrybut węzeł kontekstu.
Następujące wyrażenie XPath wybiera Identyfikator klienta atrybut węzła kontekstu:
attribute::CustomerIDself
Zawiera węzeł kontekstu samego siebie.
The following XPath expression selects the current node if it is the <Order> node:
self::OrderW tej kwerendzie XPath self jest na oś i Order jest to test węzła.