Using external variables

The XML API allows you to access external variables from XPath and XQuery expressions as well a stylesheet parameters from XSLT stylesheets.

About this task

External variables are useful when your XML processing depends on information that is not contained in an input document. If you are writing an application that allows users to search for books by title in a library that is stored as XML, for example, you could prepare a single XQuery expression to find books in the library that uses a variable for the book title to be matched. The resulting XQueryExecutable object can be used for each search that the user submits by binding the submitted book title to the variable. The details of using external variables and stylesheet parameters are presented in separate articles for XPath, XQuery, and XSLT.

Procedure




In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 19, 2011 5:16:49 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-base-iseries&topic=txml_vars
File name: txml_vars.html