In Brief

  • XPath 2.0 supports these Boolean functions : fn:true , fn:false , and fn:not .

  • XPath 2.0 also supports a large number of functions to work with times and dates, including : fn:get- years -from-yearMonthDuration , fn:get-months-from-yearMonthDuration, fn:get-days-from-dayTimeDuration , fn:get-hours-from-dayTimeDuration , fn:get-minutes-from-dayTimeDuration , fn:get-seconds-from-dayTimeDuration , fn:get-year-from-dateTime , fn:get-month-from-dateTime , fn:get-day-from-dateTime , fn:get-hours-from-dateTime , fn:get-minutes-from-dateTime , fn:get-seconds-from-dateTime , fn:get-timezone-from-dateTime , fn:get- year-from-date , fn:get- month-from-date , fn:get- day-from-date , fn:get- timezone-from-date , fn:get- hours-from-time , fn:get- minutes-from-time , fn:get- seconds-from-time , and fn:get-timezone-from-time .

  • You can adjust the timezone of time/date values with these functions : fn:adjust-dateTime-to-timezone , fn:adjust-date-to-timezone , and fn:adjust-time-to-timezone .

  • You can subtract xs:dateTime values to yield xdt:yearMonthDuration values or xdt:dayTimeDuration values with the fn:subtract-dateTimes-yielding-yearMonthDuration and fn:subtract-dateTimes-yielding-dayTimeDuration functions.

  • There are two XPath 2.0 functions designed to create expanded QName values : fn:resolve-QName and fn:expanded-QName .

  • There are also a set of XPath 2.0 functions that are designed to work on xs:QName values, and these functions are : fn:get-local- name -from-QName , fn:get-namespace-uri-from-QName , fn:get- namespace-uri-for-prefix , and fn:get- in-scope-prefixes .



XPath. Navigating XML with XPath 1.0 and 2.0 Kick Start
XPath Kick Start: Navigating XML with XPath 1.0 and 2.0
ISBN: 0672324113
EAN: 2147483647
Year: 2002
Pages: 131

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net