Name

xs:field

Attributes

xpath

An XPath expression used by the xs:unique, xs:key, or xs:keyRef element containing the xs:field

Contents

xs:annotation?

xs:field is used within xs:unique, xs:key, or xs:keyRef elements and stores an XPath location path. These expressions use a very simplified subset of XPath, permitting only abbreviated syntax for the child (/), descendent-or-self (//), and attribute axes to be used. (In place of explicit element names, the * expression may be used to match any name, and the prefix:* expression to match any name in a given namespace.) Multiple location paths may be stored in the xpath attribute, each separated by a vertical bar.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.