Functions used as the top level of an XPath query are called top-level function calls. The following query shows tolower as a top-level function call:
select xmlextract (’tolower(//book[title]="Seven Years in Trenton"]//first-name)’, text_doc) from sample_docs where name_doc=’bookstore’
------------------------------------------ joe
The parameters of a top-level function call must be an absolute path expression; that is, the parameter must begin with a slash (/) or a double slash (//).
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |