|
Home > Online Product Documentation > Table of Contents > Finding an Element with a Particular Key Finding an Element with a Particular Key
The
The first argument specifies the name of the key. The value of this argument must be a qualified name. The second argument specifies the node or nodes to examine. When the second argument is a node set, the result is the union of the results of applying the
Example
For example, the
When you display information about a video in a Web browser, you want to display the names of the actors. Because the actors are referenced only by an ID number, you create a key table in your stylesheet:
This indexes all actors by their ID. To process a video, your stylesheet specifies the following:
This instructs the XPath processor to look up the
|
XQuery Debugger
The Stylus Studio XQuery Debugger allows you to set breakpoints and step through the evaluation of any XQuery expression in a way that gives you complete control and visibility into the XQuery expression evaluation process.
Convert HTML to XML
Convert HTML-to-XML with a Document Wizard that quickly converts any HTML to standard XML with the click of a button! To get started, just click File, Document Wizards on the Stylus Studio menu.
XPath Query Editor
Stylus Studio's XML Editor has an XPath Query Editor that allows you to easily roubleshoot, test, and debug any XPath expression.
XQuery and Web Services
XQuery provides a flexible means for data abstraction, while Web services provide process abstraction. In this online video demonstration, learn how integrated XQuery & Web service tools simplify development of XQuery-based Web service applications.